Sfoglia il codice sorgente

logger: Don't output control chars on log files

tags/v0.7.0
Daniel Oaks 7 anni fa
parent
commit
73d406ccd6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      irc/logger/logger.go

+ 1
- 1
irc/logger/logger.go Vedi File

@@ -212,7 +212,7 @@ func (logger *singleLogger) Log(level Level, logType string, messageParts ...str
212 212
 
213 213
 	sep := grey(":")
214 214
 	fullStringFormatted := fmt.Sprintf("%s %s %s %s %s %s ", timeGrey(time.Now().UTC().Format("2006-01-02T15:04:05Z")), sep, levelDisplay, sep, section(logType), sep)
215
-	fullStringRaw := fmt.Sprintf("%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05Z"), LogLevelDisplayNames[level], section(logType))
215
+	fullStringRaw := fmt.Sprintf("%s : %s : %s : ", time.Now().UTC().Format("2006-01-02T15:04:05Z"), LogLevelDisplayNames[level], logType)
216 216
 	for i, p := range messageParts {
217 217
 		fullStringFormatted += p
218 218
 		fullStringRaw += p

Loading…
Annulla
Salva