Skip to content

Commit edc9510

Browse files
committed
Finished off new logger
1 parent 6fcc54c commit edc9510

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

processing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ def run(self):
115115
session_log_path = os.path.join(self.config.meta_path, "session.log")
116116
logging.basicConfig(filename=session_log_path,
117117
level=logging.DEBUG,
118-
format='%(asctime)s %(message)s')
118+
format='%(asctime)s %(message)s',
119+
stream=sys.stdout)
119120
logging.info(job)
120121

121122
self.update.emit("Started Processing")
@@ -452,6 +453,7 @@ def downsample(self, scale, scaleby_int=True, ext='nrrd', compress=False):
452453
except HarpDataError as e:
453454
self.update.emit("Rescaling the image failed: {}".format(e))
454455
raise
456+
logging.info("Scaling finished")
455457

456458
def resampler_callback(self, msg):
457459
self.update.emit(msg)

0 commit comments

Comments
 (0)