diff --git a/dc-ops b/dc-ops index 6c183f2..aa350dc 100755 --- a/dc-ops +++ b/dc-ops @@ -21,11 +21,14 @@ with configfile.open("r") as f: # fmt: off parser = argparse.ArgumentParser() parser.add_argument("--ignore-git-status", action="store_true", help="continue even if there are no new commits") # noqa +parser.add_argument("--loglevel", help="set loglevel (overrides config file)") args = parser.parse_args() # fmt: on # init logging loglevel = cfg.get("loglevel", "INFO").upper() +if args.loglevel: + loglevel = args.loglevel log.basicConfig(format="%(message)s", level=loglevel) # define docker compose parameters