Handle ipfslog.SetLogLevel error

This commit is contained in:
Leo 2020-08-17 19:45:09 +02:00
parent f8e70efb0b
commit a1dcc36df9
1 changed files with 3 additions and 1 deletions

View File

@ -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 == "" {