From 2aa40754eff5979519533b1e73c43adda753ca72 Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Wed, 1 Jul 2020 21:21:02 -0700 Subject: [PATCH 1/2] Fixed logging in echo example --- echo/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echo/main.go b/echo/main.go index cd6f582..fd31c10 100644 --- a/echo/main.go +++ b/echo/main.go @@ -80,7 +80,7 @@ func main() { // LibP2P code uses golog to log messages. They log with different // string IDs (i.e. "swarm"). We can control the verbosity level for // all loggers with: - golog.SetAllLoggers(gologging.INFO) // Change to DEBUG for extra info + golog.SetAllLoggers(golog.LevelInfo) // Change to DEBUG for extra info // Parse options from the command line listenF := flag.Int("l", 0, "wait for incoming connections") From ee409567ab8f8b97c72d2c359089c55e98fd84ea Mon Sep 17 00:00:00 2001 From: "Alessandro (Ale) Segala" <43508+ItalyPaleAle@users.noreply.github.com> Date: Wed, 1 Jul 2020 21:22:07 -0700 Subject: [PATCH 2/2] Updated routed-echo --- routed-echo/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routed-echo/main.go b/routed-echo/main.go index 3cffb7d..b67ad56 100644 --- a/routed-echo/main.go +++ b/routed-echo/main.go @@ -107,7 +107,7 @@ func main() { // LibP2P code uses golog to log messages. They log with different // string IDs (i.e. "swarm"). We can control the verbosity level for // all loggers with: - golog.SetAllLoggers(gologging.INFO) // Change to DEBUG for extra info + golog.SetAllLoggers(golog.LevelInfo) // Change to DEBUG for extra info // Parse options from the command line listenF := flag.Int("l", 0, "wait for incoming connections")