logging: include the source of each log statement
This commit is contained in:
parent
b075cac9e3
commit
37bffc9808
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ func main() {
|
|||
logrus.SetOutput(os.Stdout)
|
||||
logLevel, err := logrus.ParseLevel(config.LogLevel)
|
||||
|
||||
logrus.SetReportCaller(true)
|
||||
|
||||
if err == nil {
|
||||
logrus.SetLevel(logLevel)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue