Show More
@@ -169,8 +169,13 b' class BaseParallelApplication(BaseIPythonApplication):' | |||||
169 | log_dir = self.profile_dir.log_dir |
|
169 | log_dir = self.profile_dir.log_dir | |
170 | if self.clean_logs: |
|
170 | if self.clean_logs: | |
171 | for f in os.listdir(log_dir): |
|
171 | for f in os.listdir(log_dir): | |
172 | if re.match(r'%s-\d+\.(log|err|out)'%self.name,f): |
|
172 | if re.match(r'%s-\d+\.(log|err|out)' % self.name, f): | |
173 | os.remove(os.path.join(log_dir, f)) |
|
173 | try: | |
|
174 | os.remove(os.path.join(log_dir, f)) | |||
|
175 | except (OSError, IOError): | |||
|
176 | # probably just conflict from sibling process | |||
|
177 | # already removing it | |||
|
178 | pass | |||
174 | if self.log_to_file: |
|
179 | if self.log_to_file: | |
175 | # Start logging to the new log file |
|
180 | # Start logging to the new log file | |
176 | log_filename = self.name + u'-' + str(os.getpid()) + u'.log' |
|
181 | log_filename = self.name + u'-' + str(os.getpid()) + u'.log' |
General Comments 0
You need to be logged in to leave comments.
Login now