Skip to content

Commit 13c8477

Browse files
mars-fpurelogiq
authored andcommittedJul 11, 2017
Change heartbeat log messages to mozlog format
1 parent 9e809d2 commit 13c8477

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎landoapi/dockerflow.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ def heartbeat():
3131
phab = PhabricatorClient(api_key='')
3232
try:
3333
phab.check_connection()
34-
except PhabricatorAPIException as exc:
34+
except PhabricatorAPIException:
3535
logger.warning(
36-
'heartbeat: problem, Phabricator API connection', exc_info=exc
36+
{
37+
'msg': 'problem connecting to Phabricator',
38+
}, 'heartbeat'
3739
)
3840
return 'heartbeat: problem', 502
39-
logger.info('heartbeat: ok, all services are up')
41+
logger.info({'msg': 'ok, all services are up'}, 'heartbeat')
4042
return 'heartbeat: ok', 200
4143

4244

0 commit comments

Comments
 (0)
Failed to load comments.