From 79ee959a90a24ace657986b55f577753d89cc308 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Wed, 9 Oct 2019 22:23:04 +0200 Subject: [PATCH] Use log.Warn License: MIT Signed-off-by: Jakub Sztandera --- node/modules/lp2p/pnet.go | 4 ++-- storage/miner.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/node/modules/lp2p/pnet.go b/node/modules/lp2p/pnet.go index c388448c2..ffae463f8 100644 --- a/node/modules/lp2p/pnet.go +++ b/node/modules/lp2p/pnet.go @@ -43,8 +43,8 @@ func PNetChecker(repo repo.Repo, ph host.Host, lc fx.Lifecycle) error { select { case <-t.C: if len(ph.Network().Peers()) == 0 { - log.Warning("We are in private network and have no peers.") - log.Warning("This might be configuration mistake.") + log.Warn("We are in private network and have no peers.") + log.Warn("This might be configuration mistake.") } case <-done: return diff --git a/storage/miner.go b/storage/miner.go index 3ade17757..ef8045231 100644 --- a/storage/miner.go +++ b/storage/miner.go @@ -102,7 +102,7 @@ func (m *Miner) handlePostingSealedSectors(ctx context.Context) { if !ok { // TODO: set some state variable so that this state can be // visible via some status command - log.Warning("sealed sector channel closed, aborting process") + log.Warn("sealed sector channel closed, aborting process") return } @@ -112,7 +112,7 @@ func (m *Miner) handlePostingSealedSectors(ctx context.Context) { } case <-ctx.Done(): - log.Warning("exiting seal posting routine") + log.Warn("exiting seal posting routine") return } }