Skip to content

Commit

Permalink
Fix issue with mongodb.log
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Jan 12, 2024
1 parent 1048c2a commit d8a6d09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charms/mongodb/v1/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_mongod_args(
full_conf_dir = f"{MONGODB_SNAP_DATA_DIR}{CONF_DIR}" if snap_install else CONF_DIR
# in k8s the default logging options that are used for the vm charm are ignored and logs are
# the output of the container. To enable logging to a file it must be set explicitly
logging_options = "" if snap_install else f"--logpath={full_data_dir}/{MONGODB_LOG_FILENAME}"
logging_options = f"--logpath={full_data_dir}/{MONGODB_LOG_FILENAME}" if snap_install else ""
cmd = [
# bind to localhost and external interfaces
"--bind_ip_all",
Expand Down

0 comments on commit d8a6d09

Please sign in to comment.