Browse Source

small fix in the logger init of the finetune parser

Dimitri Korsch 4 years ago
parent
commit
be76b189e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cvfinetune/parser/base.py

+ 1 - 1
cvfinetune/parser/base.py

@@ -28,7 +28,7 @@ class FineTuneParser(GPUParser):
 		handler0.addFilter(HostnameFilter())
 		fmt0 = "<{hostname:^10s}>: " + fmt
 
-		if self._args.logfile is None:
+		if self._args.logfile in [ None, "" ] :
 			filename = f"{platform.node()}.log"
 		else:
 			filename = self._args.logfile