Skip to content

Commit 0efe944

Browse files
committed
Tweaked logging and removed fixed progress bar position
1 parent c50f8ef commit 0efe944

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

rawtools/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def raw_nsihdr():
6666

6767
parser = argparse.ArgumentParser(description=description, formatter_class=argparse.ArgumentDefaultsHelpFormatter)
6868
parser.add_argument("-V", "--version", action="version", version=f'%(prog)s {__version__}')
69-
parser.add_argument("-v", "--verbose", action="store_true", help="Increase output verbosity")
69+
parser.add_argument("-v", "--verbose", action="store_true", default=False, help="Increase output verbosity")
7070
parser.add_argument("-f", "--force", action="store_true", default=False, help="Force file creation. Overwrite any existing files.")
7171
parser.add_argument("--gui", action="store_true", default=False, help="(Experimental) Enable GUI")
7272
parser.add_argument('path', metavar='PATH', type=str, nargs="+", help='List of .nsihdr files')

rawtools/log.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ def configure(args):
2323
if args.module_name is not None:
2424
logfile_basename = f"{dt.today().strftime('%Y-%m-%d_%H-%M-%S')}_{args.module_name}.log"
2525
rpath = os.path.realpath(args.path[0])
26-
logging.debug(f"{rpath=}")
2726
if os.path.isdir(rpath):
2827
dname = rpath
2928
else:
3029
dname = os.path.dirname(rpath)
31-
logging.debug(f"{dname=}")
3230
lfp = os.path.join(dname, logfile_basename) # base log file path
33-
logging.debug(f"{lfp=}")
3431
fileHandler = logging.FileHandler(lfp)
3532
fileHandler.setFormatter(logFormatter)
3633
fileHandler.setLevel(logging.DEBUG) # always show debug statements in log file

0 commit comments

Comments
 (0)