diff options
author | Wolfy-J <[email protected]> | 2019-05-05 12:42:45 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-05 12:42:45 +0300 |
commit | e1127fb789277612f65d78ea2f06ecf9169f7b20 (patch) | |
tree | 5b0cbb39ec8152447d511cb6efd6e59324c39dea /cmd | |
parent | 8be4061d13a28d92bce4b2364049b8579b776d5d (diff) |
cs
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr/cmd/root.go | 3 | ||||
-rw-r--r-- | cmd/util/cprint.go | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/rr/cmd/root.go b/cmd/rr/cmd/root.go index 411391da..8d75f9cd 100644 --- a/cmd/rr/cmd/root.go +++ b/cmd/rr/cmd/root.go @@ -52,7 +52,7 @@ var ( SilenceErrors: true, SilenceUsage: true, Short: util.Sprintf( - "<green>RoadRunner, PHP Application Server:</reset>\nVersion: <yellow+hb>%s</reset>, %s", + "<green>RoadRunner</reset>, PHP Application Server\nVersion: <yellow+hb>%s</reset>, %s", Version, BuildTime, ), @@ -121,6 +121,7 @@ func init() { } func configureLogger(format string) { + util.Colorize = false switch format { case "color", "default": util.Colorize = true diff --git a/cmd/util/cprint.go b/cmd/util/cprint.go index 9990a038..c549317d 100644 --- a/cmd/util/cprint.go +++ b/cmd/util/cprint.go @@ -11,7 +11,7 @@ var ( reg *regexp.Regexp // Colorize enables colors support. - Colorize bool + Colorize = true ) func init() { |