Skip to content

Commit

Permalink
🐛 set default logger to info
Browse files Browse the repository at this point in the history
This is in line with cnquery. Additionally, users are missing helpful information if this is set to Warn only, like installation of providers is hidden from them. With this setting active, you get the following output again:

```
> cnspec run gcp project something-1234
→ installing provider gcp version=9.0.1
...
```

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Sep 27, 2023
1 parent bb6ef76 commit 11a110c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cnspec/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func init() {
// since the log instance is already initialized, replace default zerolog color output with our own
// use color logger by default
logger.CliCompactLogger(logger.LogOutputWriter)
zerolog.SetGlobalLevel(zerolog.WarnLevel)
zerolog.SetGlobalLevel(zerolog.InfoLevel)

config.DefaultConfigFile = "mondoo.yml"

Expand Down

0 comments on commit 11a110c

Please sign in to comment.