Commit 6d4a4b33 authored by Aaron Raddon's avatar Aaron Raddon Committed by GitHub

Merge pull request #25 from Ropes/logrus-format-fix

Extra Three characters make all the difference
parents f94c6a9a 941f5029
......@@ -479,12 +479,11 @@ func DoLog(depth, logLvl int, msg string) {
line = 0
}
entry := logrus.WithFields(logrus.Fields{
entry := rus.WithFields(logrus.Fields{
"file": file,
"line": line,
})
msg = fmt.Sprintf("%s:%d %s", file, line, msg)
// Write logs using Logrus logger
logrusLvl := logrus.Level(logLvl) + 1
switch logrusLvl {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment