mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-26 15:42:21 +08:00
this warning should only print out on debug
(perhaps should be logged instead)
This commit is contained in:

committed by
Brian Tiger Chow

parent
74a0aa54ad
commit
370d2593dc
@ -26,7 +26,7 @@ func NewBlockService(d ds.Datastore, rem exchange.Interface) (*BlockService, err
|
|||||||
return nil, fmt.Errorf("BlockService requires valid datastore")
|
return nil, fmt.Errorf("BlockService requires valid datastore")
|
||||||
}
|
}
|
||||||
if rem == nil {
|
if rem == nil {
|
||||||
u.PErr("Caution: blockservice running in local (offline) mode.\n")
|
u.DErr("Caution: blockservice running in local (offline) mode.\n")
|
||||||
}
|
}
|
||||||
return &BlockService{Datastore: d, Remote: rem}, nil
|
return &BlockService{Datastore: d, Remote: rem}, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user