Permalink
Browse files

bug

  • Loading branch information...
treeder committed Nov 18, 2011
1 parent 4ef4a2b commit 5a625dd346a17c9c8a90a0c1e43d1d7e5970fd1d
Showing with 5 additions and 4 deletions.
  1. +5 −4 golog.go
View
@@ -25,22 +25,23 @@ func NewLogger() *Logger {
func (l *Logger) Debugln(a ...interface{}) {
if l.Level <= Debug {
- log.Println("DEBUG --", a...)
+ // doesn't work: a = append([]interface{"DEBUG --"}, a...)
+ log.Println(a...)
}
}
func (l *Logger) Infoln(a ...interface{}) {
if l.Level <= Info {
- log.Println("INFO --", a...)
+ log.Println(a...)
}
}
func (l *Logger) Warnln(a ...interface{}) {
if l.Level <= Warn {
- log.Println("WARN --", a...)
+ log.Println(a...)
}
}
func (l *Logger) Errorln(a ...interface{}) {
if l.Level <= Error {
- log.Println("ERROR --", a...)
+ log.Println(a...)
}
}

0 comments on commit 5a625dd

Please sign in to comment.