##// END OF EJS Templates
Merge pull request #2437 from minrk/cleanlogs...
Min RK -
r8499:ca10c421 merge
parent child Browse files
Show More
@@ -169,8 +169,13 b' class BaseParallelApplication(BaseIPythonApplication):'
169 169 log_dir = self.profile_dir.log_dir
170 170 if self.clean_logs:
171 171 for f in os.listdir(log_dir):
172 if re.match(r'%s-\d+\.(log|err|out)'%self.name,f):
173 os.remove(os.path.join(log_dir, f))
172 if re.match(r'%s-\d+\.(log|err|out)' % self.name, 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 179 if self.log_to_file:
175 180 # Start logging to the new log file
176 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