Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
mon: enable cluster and audit logs
Browse files Browse the repository at this point in the history
Enable streaming audit/cluster/mon logs on the same channel. So when
running the mon with -d we will get all the logs on the foreground.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1591773
Signed-off-by: Sébastien Han <[email protected]>
(cherry picked from commit 29f1e9c)
Signed-off-by: Sébastien Han <[email protected]>
  • Loading branch information
leseb committed Jun 28, 2018
1 parent 7657fbe commit 148f859
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/daemon/start_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ function start_mon {
if [[ "$CEPH_DAEMON" == demo ]]; then
/usr/bin/ceph-mon "${DAEMON_OPTS[@]}" -i "${MON_NAME}" --mon-data "$MON_DATA_DIR" --public-addr "${MON_IP}:6789"
else
# enable cluster/audit/mon logs on the same stream
if [[ "$CEPH_VERSION" != "jewel" && "$CEPH_VERSION" != "kraken" ]]; then
# Mind the extra space after 'debug'
# DO NOT TOUCH IT, IT MUST BE PRESENT
DAEMON_OPTS+=(--mon-cluster-log-to-stderr "--log-stderr-prefix=debug ")
fi
log "SUCCESS"
exec /usr/bin/ceph-mon "${DAEMON_OPTS[@]}" -i "${MON_NAME}" --mon-data "$MON_DATA_DIR" --public-addr "${MON_IP}:6789"
fi
Expand Down

0 comments on commit 148f859

Please sign in to comment.