Skip to content

Commit

Permalink
Add logging option to startup command only if logging option is not e…
Browse files Browse the repository at this point in the history
…mpty
  • Loading branch information
dmitry-ratushnyy committed Jan 18, 2024
1 parent 2a57564 commit 7a9ca44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/charms/mongodb/v1/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def get_mongod_args(
f"--port={Config.MONGODB_PORT}",
"--auditDestination=syslog", # TODO sending logs to syslog until we have a separate mount point for logs
f"--auditFormat={Config.AuditLog.FORMAT}",
logging_options,
]
if logging_options:
cmd.extend([logging_options])
if auth:
cmd.extend(["--auth"])

Expand Down

0 comments on commit 7a9ca44

Please sign in to comment.