Logging module in bam.py
This commit is contained in:
@@ -33,6 +33,10 @@ if path not in sys.path:
|
|||||||
del os, sys, path
|
del os, sys, path
|
||||||
# --------
|
# --------
|
||||||
|
|
||||||
|
import logging
|
||||||
|
log = logging.getLogger("bam_cli")
|
||||||
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
|
|
||||||
def fatal(msg):
|
def fatal(msg):
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
@@ -506,6 +510,7 @@ class bam_commands:
|
|||||||
paths_ops[fn_abs_remote] = 'D'
|
paths_ops[fn_abs_remote] = 'D'
|
||||||
|
|
||||||
write_dict_as_json(".bam_paths_ops.json", paths_ops)
|
write_dict_as_json(".bam_paths_ops.json", paths_ops)
|
||||||
|
og.debug(paths_ops)
|
||||||
|
|
||||||
if os.path.exists(basedir_temp):
|
if os.path.exists(basedir_temp):
|
||||||
import shutil
|
import shutil
|
||||||
|
Reference in New Issue
Block a user