Skip to content
Snippets Groups Projects

F log

Merged Henrik tom Wörden requested to merge f-log into dev
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -175,8 +175,6 @@ def loadpath(path, include, exclude, prefix, dryrun, forceAllowSymlinks, caosdbi
@@ -175,8 +175,6 @@ def loadpath(path, include, exclude, prefix, dryrun, forceAllowSymlinks, caosdbi
for f in files:
for f in files:
totalsize += f.size
totalsize += f.size
print("Made in total {} new files with a combined size of {} "
"accessible.".format(len(files), convert_size(totalsize)))
logger.info("Made in total {} new files with a combined size of {} "
logger.info("Made in total {} new files with a combined size of {} "
"accessible.".format(len(files), convert_size(totalsize)))
"accessible.".format(len(files), convert_size(totalsize)))
@@ -249,6 +247,10 @@ exclude is given preference over include.
@@ -249,6 +247,10 @@ exclude is given preference over include.
raise ValueError(
raise ValueError(
"Do not use a localpath and in- or exclude simultaneously!")
"Do not use a localpath and in- or exclude simultaneously!")
 
# configure logging
 
logger.addHandler(logging.StreamHandler(stream=sys.stdout))
 
logger.setLevel(logging.INFO)
 
con = db.get_connection()
con = db.get_connection()
con.timeout = float(args.timeout)
con.timeout = float(args.timeout)
con._login()
con._login()
Loading