summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-08-21 09:15:13 +0300
committerPaul Buetow <paul@buetow.org>2021-08-21 09:15:13 +0300
commit70cc67e78278fcf103acc57dfe513bd6f5f258c9 (patch)
treeb559894203fe975978240e57824c316be8ea6410 /cmd
parenta92857684b3b7843dc99ea71c49ee4af8b298392 (diff)
assume daily log strategy when logDir specified via command line arg
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dserver/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go
index f5f0536..89f9dca 100644
--- a/cmd/dserver/main.go
+++ b/cmd/dserver/main.go
@@ -47,6 +47,9 @@ func main() {
config.Client.TermColorsEnable = color
if logDir != "" {
config.Common.LogDir = logDir
+ if config.Common.LogStrategy == "" {
+ config.Common.LogStrategy = "daily"
+ }
}
if displayVersion {