diff --git a/smash/web/importer/importer.py b/smash/web/importer/importer.py
index 84f68094ad43291e67a2d1db4165b0a2eff480d5..9f5f48ebcc1f048d0f2663657e792d14d87bc6e4 100644
--- a/smash/web/importer/importer.py
+++ b/smash/web/importer/importer.py
@@ -40,11 +40,11 @@ class Importer(EtlCommon):
                     continue
                 else:
                     self.import_study_subject(study_subject)
-            except BaseException:
+            except BaseException as e:
                 self.problematic_count += 1
                 traceback.print_exc(file=sys.stdout)
                 logger.error("Problem with importing study subject: " + str(study_subject.screening_number) + "," +
-                             str(study_subject.nd_number))
+                             str(study_subject.nd_number), exc_info=e)
         if "WARNING" in warning_counter.level2count:
             self.warning_count = warning_counter.level2count["WARNING"]
         logging.getLogger('').removeHandler(warning_counter)