From 29107f003521f6dae4db241c29f60855c74169b8 Mon Sep 17 00:00:00 2001 From: fangdingjun Date: Tue, 14 Aug 2018 17:50:05 +0800 Subject: [PATCH] update log library --- util.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util.go b/util.go index da17be9..ab37788 100644 --- a/util.go +++ b/util.go @@ -2,14 +2,15 @@ package obfssh import ( "io" - "log" + + "github.com/fangdingjun/go-log" ) // PipeAndClose pipe the data between c and s, close both when done func PipeAndClose(c io.ReadWriteCloser, s io.ReadWriteCloser) { defer func() { if err := recover(); err != nil { - log.Printf("recovered: %+v", err) + log.Errorf("recovered: %+v", err) } }() defer c.Close()