From 9edb9a21bce97594928f8660e8e32df2cb25b74d Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sat, 21 Mar 2015 07:26:44 +0100 Subject: Add json LogSystem #538 --- logger/sys.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'logger/sys.go') diff --git a/logger/sys.go b/logger/sys.go index bd826b587..db4251a52 100644 --- a/logger/sys.go +++ b/logger/sys.go @@ -76,8 +76,7 @@ func dispatchLoop() { func sysLoop(sys LogSystem, in <-chan message, wg *sync.WaitGroup) { for msg := range in { switch sys.(type) { - case *rawLogSystem: - // This is a semantic hack since rawLogSystem has little to do with JsonLevel + case *jsonLogSystem: if msg.level == JsonLevel { sys.LogPrint(msg.level, msg.msg) } -- cgit