mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 23:34:51 +01:00
Slave to my master: gofmt.
This commit is contained in:
parent
3ea1db0849
commit
fbbc8e856a
@ -55,14 +55,12 @@ var loggingLevels = map[string]int{
|
||||
}
|
||||
|
||||
var loggingPrefixes = map[int]string{
|
||||
errorV: "Error: ",
|
||||
warningV: "Warning: ",
|
||||
infoV: "Info: ",
|
||||
debugV: "Debug: ",
|
||||
errorV: "Error: ",
|
||||
warningV: "Warning: ",
|
||||
infoV: "Info: ",
|
||||
debugV: "Debug: ",
|
||||
}
|
||||
|
||||
|
||||
|
||||
//loggingLevel is the user configured level of logging: ERROR, WARNING, INFO, DEBUG
|
||||
var loggingLevel = errorV
|
||||
|
||||
@ -97,7 +95,7 @@ func makeLogger(lvl int) func(format string, a ...interface{}) {
|
||||
//need to futz with it.
|
||||
prefix := loggingPrefixes[lvl]
|
||||
if len(prefix) > 0 {
|
||||
loggingFilePointer.WriteString(prefix)
|
||||
loggingFilePointer.WriteString(prefix)
|
||||
}
|
||||
loggingFilePointer.WriteString(msg)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user