summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {