Skip to content

Commit 667b18a

Browse files
committed
Admin clone/transform tool: include stack trace in error log
1 parent ec52808 commit 667b18a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django/applications/catmaid/control/annotationadmin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from celery.utils.log import get_task_logger
77
import time
88
import csv
9+
import traceback
910

1011
from django import forms
1112
from django.conf import settings
@@ -205,7 +206,7 @@ def async_project_copy_job(import_task_id) -> str:
205206
import_task.status = ImportTask.StatusOptions.Error
206207
except Exception as err:
207208
task_logger.removeHandler(log_handler)
208-
import_task.import_log = f"{log_stream.getvalue()}\n{err}"
209+
import_task.import_log = f"{log_stream.getvalue()}\n{err}\n{traceback.format_exc()}"
209210
import_task.status = ImportTask.StatusOptions.Error
210211

211212
import_task.import_time = time.perf_counter() - start_time

0 commit comments

Comments
 (0)