Skip to content

Commit

Permalink
Finished off new logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchsig committed Nov 10, 2016
1 parent 6fcc54c commit edc9510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def run(self):
session_log_path = os.path.join(self.config.meta_path, "session.log")
logging.basicConfig(filename=session_log_path,
level=logging.DEBUG,
format='%(asctime)s %(message)s')
format='%(asctime)s %(message)s',
stream=sys.stdout)
logging.info(job)

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

def resampler_callback(self, msg):
self.update.emit(msg)
Expand Down

0 comments on commit edc9510

Please sign in to comment.