aboutsummaryrefslogtreecommitdiffstats
path: root/logger/sys.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-21 14:26:44 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-21 14:26:44 +0800
commit9edb9a21bce97594928f8660e8e32df2cb25b74d (patch)
treea933fa349621d842f361762045eabc96772d147d /logger/sys.go
parent4f5b362bda862b0d77583491d5e04193148a9349 (diff)
downloadgo-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar
go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.gz
go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.bz2
go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.lz
go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.xz
go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.tar.zst
go-tangerine-9edb9a21bce97594928f8660e8e32df2cb25b74d.zip
Add json LogSystem #538
Diffstat (limited to 'logger/sys.go')
-rw-r--r--logger/sys.go3
1 files changed, 1 insertions, 2 deletions
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)
}