Handle ipfslog.SetLogLevel error
This commit is contained in:
parent
f8e70efb0b
commit
a1dcc36df9
|
@ -96,7 +96,9 @@ func main() {
|
|||
ipfslog.SetAllLoggers(lvl)
|
||||
|
||||
// Mute chatty subsystems.
|
||||
ipfslog.SetLogLevel("swarm2", "error") // connection errors
|
||||
if err := ipfslog.SetLogLevel("swarm2", "error"); err != nil {
|
||||
panic(err)
|
||||
} // connection errors
|
||||
|
||||
// Verify flags
|
||||
if *nodeKeyPath == "" {
|
||||
|
|
Loading…
Reference in New Issue