Skip to content

Commit

Permalink
Add traceback to failed_ce's for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
djw8605 committed Nov 8, 2019
1 parent 75f7034 commit a1e56a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/htcondorce/web_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import time
import types
import socket
import traceback

import classad
htcondor = None
Expand Down Expand Up @@ -173,7 +174,8 @@ def agis_data(environ):
except (KeyError, TypeError):
# No way to log an error, stderr doesn't work, stdout, or logging module
# So, just add it to the json as "failed_ces"
results['failed_ces'][ad['Name']] = ad
error = traceback.format_exc()
results['failed_ces'][ad['Name']] = error

return results

Expand Down

0 comments on commit a1e56a2

Please sign in to comment.