Show More
@@ -177,9 +177,11 b' class BaseParallelApplication(BaseIPythonApplication):' | |||
|
177 | 177 | if open_log_file is not None: |
|
178 | 178 | self.log.removeHandler(self._log_handler) |
|
179 | 179 | self._log_handler = logging.StreamHandler(open_log_file) |
|
180 | self._log_formatter = logging.Formatter("[%(name)s] %(message)s") | |
|
181 | self._log_handler.setFormatter(self._log_formatter) | |
|
182 | 180 | self.log.addHandler(self._log_handler) |
|
181 | # Add timestamps to log format: | |
|
182 | self._log_formatter = logging.Formatter("%(asctime)s.%(msecs).03d [%(name)s] %(message)s", | |
|
183 | datefmt="%Y-%m-%d %H:%M:%S") | |
|
184 | self._log_handler.setFormatter(self._log_formatter) | |
|
183 | 185 | # do not propagate log messages to root logger |
|
184 | 186 | # ipcluster app will sometimes print duplicate messages during shutdown |
|
185 | 187 | # if this is 1 (default): |
General Comments 0
You need to be logged in to leave comments.
Login now