Skip to content

Commit 336ce50

Browse files
author
ffffwh
committed
change default dtle log_file to ""
Then it will use nomad logger. When using an old nomad.hcl without `dtle.config.log_file`, dtle log will be lost if there is no permission to create /var/log/dtle.
1 parent 9d3ea6c commit 336ce50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

driver/driver.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ var (
8282
hclspec.NewLiteral(`""`)),
8383
"memory": hclspec.NewAttr("memory", "string", false),
8484
"big_tx_max_jobs": hclspec.NewAttr("big_tx_max_jobs", "number", false),
85-
"log_file": hclspec.NewDefault(hclspec.NewAttr("log_file", "string", false),
86-
hclspec.NewLiteral(`"/var/log/dtle"`)),
85+
"log_file": hclspec.NewAttr("log_file", "string", false),
8786
})
8887

8988
connectionConfigSpec = hclspec.NewObject(map[string]*hclspec.Spec{

0 commit comments

Comments
 (0)