some debug stuff

This commit is contained in:
jasquat 2023-04-20 07:35:39 -04:00
parent 94414ea86b
commit 5049f1dc49
No known key found for this signature in database
3 changed files with 3 additions and 4 deletions

View File

@ -617,7 +617,7 @@ class TaskService:
process_instance_event.task_guid = task_guid
db.session.add(process_instance_event)
if event_type == ProcessInstanceEventType.process_instance_error.value and exception is not None:
if exception is not None:
# truncate to avoid database errors on large values. We observed that text in mysql is 65K.
stacktrace = traceback.format_exc()[0:63999]
message = str(exception)[0:1023]
@ -626,7 +626,6 @@ class TaskService:
task_line_contents = None
task_trace = None
task_offset = None
# import pdb; pdb.set_trace()
if isinstance(exception, WorkflowTaskException) or (isinstance(exception, ApiError) and exception.error_code == 'task_error'):
task_line_number = exception.line_number
task_line_contents = exception.error_line

View File

@ -45,7 +45,7 @@ export const childrenForErrorObject = (errorObject: ErrorForDisplay) => {
);
const errorLine = errorDetailDisplay(errorObject, 'error_line', 'Context');
let taskTrace = null;
if (errorObject.task_trace && errorObject.task_trace.length > 1) {
if (errorObject.task_trace && errorObject.task_trace.length > 0) {
taskTrace = (
<div className="error_info">
<span className="error_title">Call Activity Trace:</span>

View File

@ -167,12 +167,12 @@ export default function ProcessInstanceLogList({ variant }: OwnProps) {
task_trace: eventErrorDetails.task_trace,
};
const errorChildren = childrenForErrorObject(errorForDisplay);
// <pre>{eventErrorDetails.stacktrace}</pre>
errorMessageTag = (
<>
<p className="failure-string">{eventErrorDetails.message}</p>
<br />
{errorChildren}
<pre>{eventErrorDetails.stacktrace}</pre>
</>
);
}