mirror of
https://codeberg.org/woodpecker-plugins/go-plugin.git
synced 2024-11-24 22:35:39 +01:00
Fix to not log time in output (#3)
Co-authored-by: Lauris BH <lauris@nix.lv> Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/3
This commit is contained in:
parent
8208462a69
commit
276c549ebf
@ -43,7 +43,7 @@ func SetupConsoleLogger(c *cli.Context) error {
|
|||||||
zerolog.SetGlobalLevel(lvl)
|
zerolog.SetGlobalLevel(lvl)
|
||||||
log.Logger = zerolog.New(zerolog.ConsoleWriter{
|
log.Logger = zerolog.New(zerolog.ConsoleWriter{
|
||||||
Out: os.Stdout,
|
Out: os.Stdout,
|
||||||
FieldsExclude: []string{"time"},
|
PartsExclude: []string{zerolog.TimestampFieldName},
|
||||||
}).With().Timestamp().Logger()
|
}).With().Timestamp().Logger()
|
||||||
if zerolog.GlobalLevel() <= zerolog.DebugLevel {
|
if zerolog.GlobalLevel() <= zerolog.DebugLevel {
|
||||||
log.Logger = log.With().Caller().Logger()
|
log.Logger = log.With().Caller().Logger()
|
||||||
|
Loading…
Reference in New Issue
Block a user