mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
chore: enable logrus report caller (#1386)
* chore: enable logrus report caller * chore: only enable report caller in debug mode
This commit is contained in:
parent
0c1a867c5e
commit
c265cc3133
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ func Init(logLevel string) {
|
|||
logrusLogLevel = int(logrus.InfoLevel)
|
||||
}
|
||||
Logger.SetLevel(logrus.Level(logrusLogLevel))
|
||||
if logrusLogLevel >= int(logrus.DebugLevel) {
|
||||
Logger.ReportCaller = true
|
||||
Logger.Debug("Logrus report caller enabled in debug mode")
|
||||
}
|
||||
}
|
||||
|
||||
func AddFileLogger(workdir string) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue