summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-05 12:42:45 +0300
committerWolfy-J <[email protected]>2019-05-05 12:42:45 +0300
commite1127fb789277612f65d78ea2f06ecf9169f7b20 (patch)
tree5b0cbb39ec8152447d511cb6efd6e59324c39dea /cmd
parent8be4061d13a28d92bce4b2364049b8579b776d5d (diff)
cs
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rr/cmd/root.go3
-rw-r--r--cmd/util/cprint.go2
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() {