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 | 3cc8887885f24a3f0d607af24197bc364ab16b8d (patch) | |
| tree | 48e85a54d3e4f6139001a58a3e57dd03b27c780a /internal/io | |
| parent | 1e00c256842e125a865a6cc3f9aa70a1a498f6dc (diff) | |
add missing brush and also add color client configs plus jsonschema
Diffstat (limited to 'internal/io')
| -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 |
