Git commit d03050dc6c883060a843db1230eee7f77d7e3235 by Hannah von Reth. Committed on 09/12/2016 at 12:53. Pushed by vonreth into branch 'master'. Change file name for log file M +4 -4 bin/CraftDebug.py https://commits.kde.org/craft/d03050dc6c883060a843db1230eee7f77d7e3235 diff --git a/bin/CraftDebug.py b/bin/CraftDebug.py index 8fafb54d0..134d4f6e8 100644 --- a/bin/CraftDebug.py +++ b/bin/CraftDebug.py @@ -29,12 +29,12 @@ class CraftDebug(object): logDir =3D craftSettings.get("General", "EMERGE_LOG_DIR", os.path.= expanduser("~/.craft/")) if not os.path.exists(logDir): os.makedirs(logDir) - cleanNameRe =3D re.compile(r"\\|/|:|;") - fileName =3D "log-%s.txt" % cleanNameRe.sub("", os.path.dirname(Cr= aftStandardDirs.craftRoot())) - fileHandler =3D logging.FileHandler(os.path.join(logDir, fileName)= , mode=3D"wt+") + + cleanNameRe =3D re.compile(r":?\\+|/+|:|;") + fileHandler =3D logging.FileHandler(os.path.join(logDir, "log-%s.t= xt" % cleanNameRe.sub("_", CraftStandardDirs._deSubstPath(CraftStandardDirs= .craftRoot()))), mode=3D"wt+") self._log.addHandler(fileHandler) fileHandler.setLevel(logging.DEBUG) - + self.log.debug("Log is saved to: %s" % fileHandler.baseFilename) = def verbose(self): """return the value of the verbose level"""