diff options
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/hakurei/command.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/hakurei/command.go b/cmd/hakurei/command.go index d706bd21..0ce3b71c 100644 --- a/cmd/hakurei/command.go +++ b/cmd/hakurei/command.go @@ -162,8 +162,12 @@ func buildCommand(out io.Writer) command.Command { // override log from configuration if dbusVerbose { - config.SessionBus.Log = true - config.SystemBus.Log = true + if config.SessionBus != nil { + config.SessionBus.Log = true + } + if config.SystemBus != nil { + config.SystemBus.Log = true + } } } |
