fix: fixed logging

This commit is contained in:
evilsocket 2018-01-09 19:55:18 +01:00
commit 6106ec80a2
2 changed files with 6 additions and 6 deletions

View file

@ -5,21 +5,21 @@ import (
)
func Debug(format string, args ...interface{}) {
session.I.Events.Log(session.DEBUG, format, args)
session.I.Events.Log(session.DEBUG, format, args...)
}
func Info(format string, args ...interface{}) {
session.I.Events.Log(session.INFO, format, args)
session.I.Events.Log(session.INFO, format, args...)
}
func Warning(format string, args ...interface{}) {
session.I.Events.Log(session.WARNING, format, args)
session.I.Events.Log(session.WARNING, format, args...)
}
func Error(format string, args ...interface{}) {
session.I.Events.Log(session.ERROR, format, args)
session.I.Events.Log(session.ERROR, format, args...)
}
func Fatal(format string, args ...interface{}) {
session.I.Events.Log(session.FATAL, format, args)
session.I.Events.Log(session.FATAL, format, args...)
}

View file

@ -111,7 +111,7 @@ func (p *EventPool) Log(level int, format string, args ...interface{}) {
return
}
message := fmt.Sprintf(format, args)
message := fmt.Sprintf(format, args...)
p.Add("sys.log", LogMessage{
level,