Skip to content

Commit

Permalink
Add a process to check the configuration of logDiradd logDir check (#128
Browse files Browse the repository at this point in the history
)

* add logDir check

Signed-off-by: myajima <[email protected]>

* change LogDir default

Signed-off-by: myajima <[email protected]>

* fix import cycle

Signed-off-by: myajima <[email protected]>

* fix APP_NAME

Signed-off-by: myajima <[email protected]>

---------

Signed-off-by: myajima <[email protected]>
  • Loading branch information
y-myajima authored May 22, 2024
1 parent 9b939ec commit 72356df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func DefaultIdentityConfig() *IdentityConfig {
ShutdownTimeout: DEFAULT_SHUTDOWN_TIMEOUT,
ShutdownDelay: DEFAULT_SHUTDOWN_DELAY,

LogDir: "",
LogDir: fmt.Sprintf("/var/log/%s", APP_NAME),
LogLevel: "INFO",

rawMode: "init",
Expand Down

0 comments on commit 72356df

Please sign in to comment.