Skip to content

Commit af9b527

Browse files
committed
- support logging for docker
1 parent 4c11214 commit af9b527

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CHANGELOG
22
=========
33

4+
v1.0.5 (30.06.2018)
5+
-------
6+
- docker compatible logging (forcing TTY output for logrus)
7+
48
v1.0.4 (25.06.2018)
59
-------
610
- changes in server shutdown sequence

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
cd $(dirname "${BASH_SOURCE[0]}")
33
OD="$(pwd)"
44
# Pushes application version into the build information.
5-
RR_VERSION=1.0.3
5+
RR_VERSION=1.0.5
66

77
# Hardcode some values to the core package
88
LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}"

cmd/rr/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ import (
3434
"github.com/spiral/roadrunner/cmd/rr/debug"
3535
_ "github.com/spiral/roadrunner/cmd/rr/http"
3636

37+
"github.com/sirupsen/logrus"
3738
"github.com/spf13/cobra"
3839
)
3940

4041
var debugMode bool
4142

4243
func main() {
44+
// forcing text based logging
45+
rr.Logger.Formatter = &logrus.TextFormatter{ForceColors: true}
4346

4447
// provides ability to make local connection to services
4548
rr.Container.Register(rpc.ID, &rpc.Service{})

0 commit comments

Comments
 (0)