diff options
| author | Paul Buetow <paul@buetow.org> | 2021-08-12 10:56:36 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-08-12 10:56:36 +0300 |
| commit | 1cd0902b40fcddbe35ba9d29daccb9084d19fd6e (patch) | |
| tree | 48e85a54d3e4f6139001a58a3e57dd03b27c780a /internal/io/logger/logger.go | |
| parent | 190922c087bfbe00299d73d1ea74bbb9a41852d5 (diff) | |
add missing brush and also add color client configs plus jsonschema
Diffstat (limited to 'internal/io/logger/logger.go')
| -rw-r--r-- | internal/io/logger/logger.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/io/logger/logger.go b/internal/io/logger/logger.go index bef5293..bb9dc02 100644 --- a/internal/io/logger/logger.go +++ b/internal/io/logger/logger.go @@ -207,7 +207,7 @@ func write(what, severity, message string) { if Mode.logToStdout { line := fmt.Sprintf("%s|%s|%s|%s\n", what, hostname, severity, message) - if config.Client.TermColorsEnabled { + if config.Client.TermColorsEnable { line = brush.Colorfy(line) } @@ -262,7 +262,7 @@ func Raw(message string) { } if Mode.logToStdout { - if config.Client.TermColorsEnabled { + if config.Client.TermColorsEnable { message = brush.Colorfy(message) } stdoutBufCh <- message |
