##// END OF EJS Templates
fix regex for cleaning old logs with ipcluster...
MinRK -
Show More
@@ -401,10 +401,8 b' class IPClusterEngines(BaseParallelApplication):'
401 if self.clean_logs:
401 if self.clean_logs:
402 log_dir = self.profile_dir.log_dir
402 log_dir = self.profile_dir.log_dir
403 for f in os.listdir(log_dir):
403 for f in os.listdir(log_dir):
404 if re.match(r'ip(engine|controller)z-\d+\.(log|err|out)',f):
404 if re.match(r'ip(engine|controller)-.+\.(log|err|out)',f):
405 os.remove(os.path.join(log_dir, f))
405 os.remove(os.path.join(log_dir, f))
406 # This will remove old log files for ipcluster itself
407 # super(IPBaseParallelApplication, self).start_logging()
408
406
409 def start(self):
407 def start(self):
410 """Start the app for the engines subcommand."""
408 """Start the app for the engines subcommand."""
General Comments 0
You need to be logged in to leave comments. Login now