Skip to content
Snippets Groups Projects

WIP: Update logging messages

Closed Bo-Chun Chen requested to merge github/fork/diedpigs/feat-logging into feat-cod-rmq
2 files
+ 12
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -6,6 +6,7 @@ import rc_util
from rc_rmq import RCRMQ
import rabbit_config as rmq_cfg
import time
import logging
task = "git_commit"
@@ -20,6 +21,14 @@ groups_dir = repo_location + "/groups"
args = rc_util.get_args()
logger = rc_util.get_logger(args)
# Disable logging messages for others
logging.getLogger("sh").setLevel(logging.WARNING)
logging.getLogger("pika").setLevel(logging.WARNING)
if args.verbose:
logging.getLogger("sh").setLevel(logging.INFO)
logging.getLogger("pika").setLevel(logging.INFO)
if not args.dry_run:
git = sh.git.bake(
"--git-dir", repo_location + "/.git", "--work-tree", repo_location
Loading