autoscaler: fix double-prefixed worker log filename
Log file was autoscale-autoscale-1.log because worker_id already carries the autoscale- prefix; now it is autoscale-1.log.
This commit is contained in:
1 parent
26daddf909
commit
951730e224
1 file changed
+1
-1
+1
-1
@@ -159,7 +159,7 @@ class Autoscaler:
|
||||
log_handle = None
|
||||
if self.log_dir:
|
||||
log_path = os.path.join(
|
||||
self.log_dir, "autoscale-%s.log" % worker_id)
|
||||
self.log_dir, "%s.log" % worker_id)
|
||||
log_handle = open(log_path, "ab")
|
||||
proc = subprocess.Popen(
|
||||
cmd, stdout=log_handle, stderr=subprocess.STDOUT,
|
||||
|
||||
Reference in new issue
Block a user