Ticket #908: Remove some unneeded warnings
parent
c7aef57f89
commit
5fe0829c26
|
@ -894,17 +894,19 @@ class OpengnsysGitLibrary:
|
|||
|
||||
root_norm = os.path.normpath(root)
|
||||
root_rel = root[len(path):None]
|
||||
|
||||
#print(f"A: {root}")
|
||||
#print(f"B: {git_dir}")
|
||||
|
||||
if root_norm.startswith(git_dir):
|
||||
self.logger.debug(f"Ignoring git directory: {root_norm}")
|
||||
|
||||
|
||||
# No examinamos el .git del raíz
|
||||
continue
|
||||
|
||||
if root_rel.startswith("/.opengnsys-metadata"):
|
||||
self.logger.debug("Ignoring metadata directory: %s", root_norm)
|
||||
continue
|
||||
|
||||
|
||||
if not root in seen_roots:
|
||||
seen_roots[root]=1
|
||||
|
||||
|
@ -1681,7 +1683,8 @@ if __name__ == '__main__':
|
|||
if not os.path.exists(opengnsys_log_dir):
|
||||
os.mkdir(opengnsys_log_dir)
|
||||
|
||||
fileLog = logging.FileHandler(f"{opengnsys_log_dir}/gitlib.log")
|
||||
logFilePath = f"{opengnsys_log_dir}/gitlib.log"
|
||||
fileLog = logging.FileHandler(logFilePath)
|
||||
fileLog.setLevel(logging.DEBUG)
|
||||
|
||||
formatter = logging.Formatter('%(asctime)s - %(name)24s - [%(levelname)5s] - %(message)s')
|
||||
|
@ -1692,7 +1695,8 @@ if __name__ == '__main__':
|
|||
logger.addHandler(streamLog)
|
||||
logger.addHandler(fileLog)
|
||||
|
||||
logger.info("Program start")
|
||||
|
||||
logger.info("Program start, logging details to %s", logFilePath)
|
||||
|
||||
parser = argparse.ArgumentParser(
|
||||
prog="OpenGnsys Git Library",
|
||||
|
|
Loading…
Reference in New Issue