Skip to content

Commit 9e8f475

Browse files
committed
Merge branch 'Replace-popen-to-OpenSSL-313' of https://github.com/Will-Cross1/ssm into Replace-popen-to-OpenSSL-313
2 parents fea2cc5 + 0f22517 commit 9e8f475

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ssm/agents.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ def run_sender(protocol, brokers, project, token, cp, log):
248248
log.error('SSM failed to complete successfully: %s', e)
249249
except Exception as e:
250250
print('SSM failed to complete successfully. See log file for details.')
251-
log.error('Unexpected exception in SSM: %s', e)
252-
log.error('Exception type: %s', e.__class__)
251+
log.exception('Unexpected exception in SSM. See traceback below.')
253252
sender_failed = True
254253
else:
255254
sender_failed = False
@@ -351,8 +350,7 @@ def run_receiver(protocol, brokers, project, token, cp, log, dn_file):
351350
dc.close()
352351
receiver_failed = True
353352
except Exception as e:
354-
log.error('Unexpected exception: %s', e)
355-
log.error('Exception type: %s', e.__class__)
353+
log.exception('Unexpected exception in SSM. See traceback below.')
356354
log.error('The SSM will exit.')
357355
ssm.shutdown()
358356
dc.close()

0 commit comments

Comments
 (0)