summaryrefslogtreecommitdiff
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
commit00c3b6be33448d0389e17e45582c7c41d5d61fc2 (patch)
treeb559894203fe975978240e57824c316be8ea6410
parent67d464f8a6e6ad6e1820feeb181c4db4751d8973 (diff)
assume daily log strategy when logDir specified via command line arg
-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 {