From 61b6781d59c934d7bf80439ffb79121ddbbf7096 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 --- jsonlog/jsonlog.go | 3 ++- proxy/tcp_proxy.go | 3 ++- proxy/udp_proxy.go | 3 ++- sysinfo/sysinfo.go | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/jsonlog/jsonlog.go b/jsonlog/jsonlog.go index b0c61a8..3a96d86 100644 --- a/jsonlog/jsonlog.go +++ b/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/proxy/tcp_proxy.go b/proxy/tcp_proxy.go index 1aa6d9f..eacf142 100644 --- a/proxy/tcp_proxy.go +++ b/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/proxy/udp_proxy.go b/proxy/udp_proxy.go index ae6a7bb..f9f2d11 100644 --- a/proxy/udp_proxy.go +++ b/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/sysinfo/sysinfo.go b/sysinfo/sysinfo.go index 0c28719..001111f 100644 --- a/sysinfo/sysinfo.go +++ b/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" )