Use log.Warn

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-10-09 22:23:04 +02:00
parent 2a9ab727c8
commit 79ee959a90
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
2 changed files with 4 additions and 4 deletions

View File

@ -43,8 +43,8 @@ func PNetChecker(repo repo.Repo, ph host.Host, lc fx.Lifecycle) error {
select { select {
case <-t.C: case <-t.C:
if len(ph.Network().Peers()) == 0 { if len(ph.Network().Peers()) == 0 {
log.Warning("We are in private network and have no peers.") log.Warn("We are in private network and have no peers.")
log.Warning("This might be configuration mistake.") log.Warn("This might be configuration mistake.")
} }
case <-done: case <-done:
return return

View File

@ -102,7 +102,7 @@ func (m *Miner) handlePostingSealedSectors(ctx context.Context) {
if !ok { if !ok {
// TODO: set some state variable so that this state can be // TODO: set some state variable so that this state can be
// visible via some status command // visible via some status command
log.Warning("sealed sector channel closed, aborting process") log.Warn("sealed sector channel closed, aborting process")
return return
} }
@ -112,7 +112,7 @@ func (m *Miner) handlePostingSealedSectors(ctx context.Context) {
} }
case <-ctx.Done(): case <-ctx.Done():
log.Warning("exiting seal posting routine") log.Warn("exiting seal posting routine")
return return
} }
} }