Browse Source

remove log type sanitization

tags/v2.1.0-rc1
Shivaram Lingamneni 4 years ago
parent
commit
6e4b0b3125
1 changed files with 1 additions and 4 deletions
  1. 1
    4
      irc/logger/logger.go

+ 1
- 4
irc/logger/logger.go View File

10
 	"os"
10
 	"os"
11
 	"time"
11
 	"time"
12
 
12
 
13
-	"strings"
14
-
15
 	"sync"
13
 	"sync"
16
 	"sync/atomic"
14
 	"sync/atomic"
17
 )
15
 )
221
 	}
219
 	}
222
 
220
 
223
 	// ensure we're capturing this logType
221
 	// ensure we're capturing this logType
224
-	logTypeCleaned := strings.ToLower(strings.TrimSpace(logType))
225
-	capturing := (logger.Types["*"] || logger.Types[logTypeCleaned]) && !logger.ExcludedTypes["*"] && !logger.ExcludedTypes[logTypeCleaned]
222
+	capturing := (logger.Types["*"] || logger.Types[logType]) && !logger.ExcludedTypes["*"] && !logger.ExcludedTypes[logType]
226
 	if !capturing {
223
 	if !capturing {
227
 		return
224
 		return
228
 	}
225
 	}

Loading…
Cancel
Save