summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-30 13:51:31 +0300
committerWolfy-J <[email protected]>2018-06-30 13:51:31 +0300
commitaf9b527604714aca3a63671977ccaac982ccae1c (patch)
tree4b499500829c159e2111a7b500698ae63fe20b88
parent4c112144459a6414b74127b72de372c4ac7b99ac (diff)
- support logging for docker
-rw-r--r--CHANGELOG.md4
-rwxr-xr-xbuild.sh2
-rw-r--r--cmd/rr/main.go3
3 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dafdc0e5..57efd5a1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,10 @@
CHANGELOG
=========
+v1.0.5 (30.06.2018)
+-------
+- docker compatible logging (forcing TTY output for logrus)
+
v1.0.4 (25.06.2018)
-------
- changes in server shutdown sequence
diff --git a/build.sh b/build.sh
index 85b0b306..6765a431 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,7 @@
cd $(dirname "${BASH_SOURCE[0]}")
OD="$(pwd)"
# Pushes application version into the build information.
-RR_VERSION=1.0.3
+RR_VERSION=1.0.5
# Hardcode some values to the core package
LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}"
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 4ab2fbe2..03bef9bd 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -34,12 +34,15 @@ import (
"github.com/spiral/roadrunner/cmd/rr/debug"
_ "github.com/spiral/roadrunner/cmd/rr/http"
+ "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
var debugMode bool
func main() {
+ // forcing text based logging
+ rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
// provides ability to make local connection to services
rr.Container.Register(rpc.ID, &rpc.Service{})