summaryrefslogtreecommitdiff
path: root/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'context.go')
-rw-r--r--context.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/context.go b/context.go
index fcefad1..615192c 100644
--- a/context.go
+++ b/context.go
@@ -480,6 +480,9 @@ func (ctx Context) Logger(module ...Module) *zap.Logger {
if len(module) > 0 {
mod = module[0]
}
+ if mod == nil {
+ return Log()
+ }
return ctx.cfg.Logging.Logger(mod)
}