Skip to content

Commit

Permalink
logging: log to stdout
Browse files Browse the repository at this point in the history
Ensure all log output goes to stdout rather than to the log
file in disk; no log rotation in K8S containers.
  • Loading branch information
javacruft committed May 2, 2023
1 parent ed3f654 commit 9aaa8c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ def _rabbitmq_layer(self) -> dict:
"user": RABBITMQ_USER,
"group": RABBITMQ_GROUP,
"requires": [EPMD_SERVICE],
"environment": {
"RABBITMQ_LOGS": "-",
},
},
EPMD_SERVICE: {
"override": "replace",
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ def test_rabbitmq_pebble_ready(self):
"user": "rabbitmq",
"group": "rabbitmq",
"requires": ["epmd"],
"environment": {
"RABBITMQ_LOGS": "-",
},
},
"epmd": {
"override": "replace",
Expand Down

0 comments on commit 9aaa8c8

Please sign in to comment.