From 0a37f836adef969e9e5aa9ce7b2c465f9441c1a5 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Mon, 27 Oct 2014 17:45:38 +0000 Subject: [PATCH] update sysinfo to logrus Signed-off-by: Victor Vieux --- pkg/jsonlog/jsonlog.go | 3 ++- pkg/proxy/tcp_proxy.go | 3 ++- pkg/proxy/udp_proxy.go | 3 ++- pkg/sysinfo/sysinfo.go | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pkg/jsonlog/jsonlog.go b/pkg/jsonlog/jsonlog.go index b0c61a803f..3a96d86f82 100644 --- a/pkg/jsonlog/jsonlog.go +++ b/pkg/jsonlog/jsonlog.go @@ -4,8 +4,9 @@ import ( "encoding/json" "fmt" "io" - "log" "time" + + log "github.com/Sirupsen/logrus" ) type JSONLog struct { diff --git a/pkg/proxy/tcp_proxy.go b/pkg/proxy/tcp_proxy.go index 1aa6d9fd70..eacf1427a3 100644 --- a/pkg/proxy/tcp_proxy.go +++ b/pkg/proxy/tcp_proxy.go @@ -2,9 +2,10 @@ package proxy import ( "io" - "log" "net" "syscall" + + log "github.com/Sirupsen/logrus" ) type TCPProxy struct { diff --git a/pkg/proxy/udp_proxy.go b/pkg/proxy/udp_proxy.go index ae6a7bbc42..f9f2d111e5 100644 --- a/pkg/proxy/udp_proxy.go +++ b/pkg/proxy/udp_proxy.go @@ -2,12 +2,13 @@ package proxy import ( "encoding/binary" - "log" "net" "strings" "sync" "syscall" "time" + + log "github.com/Sirupsen/logrus" ) const ( diff --git a/pkg/sysinfo/sysinfo.go b/pkg/sysinfo/sysinfo.go index 0c28719f61..001111f43d 100644 --- a/pkg/sysinfo/sysinfo.go +++ b/pkg/sysinfo/sysinfo.go @@ -2,10 +2,10 @@ package sysinfo import ( "io/ioutil" - "log" "os" "path" + log "github.com/Sirupsen/logrus" "github.com/docker/libcontainer/cgroups" )