Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def pre_stop():
is_mongo_primary = repl_status['myState'] == 1
# ref https://docs.mongodb.com/manual/reference/replica-states/
except Exception as e:
log.error(e, 'unable to get primary status while shuting down')
log.error('unable to get primary status while shuting down: %s', e)
return True

if is_mongo_primary:
Expand Down Expand Up @@ -275,7 +275,7 @@ def on_change():
is_mongo_primary = repl_status['myState'] == 1
# ref https://docs.mongodb.com/manual/reference/replica-states/
except Exception as e:
log.error(e, 'unable to get primary status')
log.error('unable to get primary status: %s', e)
return False

if is_mongo_primary:
Expand Down