Skip to content

Commit

Permalink
update log config docs. update config tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nasdf committed Mar 15, 2024
1 parent e7edde7 commit 4d69fc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions cli/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,11 @@ func TestLoadConfigNotExist(t *testing.T) {
assert.Equal(t, true, cfg.GetBool("net.pubsubenabled"))
assert.Equal(t, false, cfg.GetBool("net.relay"))
assert.Equal(t, []string{}, cfg.GetStringSlice("net.peers"))

assert.Equal(t, "info", cfg.GetString("log.level"))
assert.Equal(t, "stderr", cfg.GetString("log.output"))
assert.Equal(t, "text", cfg.GetString("log.format"))
assert.Equal(t, false, cfg.GetBool("log.stacktrace"))
assert.Equal(t, false, cfg.GetBool("log.source"))
assert.Equal(t, "", cfg.GetString("log.overrides"))
}
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ https://docs.libp2p.io/concepts/circuit-relay/

## `log.level`

Log level to use. Options are `debug`, `info`, `error`, `fatal`. Defaults to `info`.
Log level to use. Options are `info` or `error`. Defaults to `info`.

## `log.output`

Expand Down

0 comments on commit 4d69fc3

Please sign in to comment.