|
@@ -44,6 +44,9 @@ def main():
|
|
|
action="store_true")
|
|
|
parser.add_argument("--ejabberd", help="use the ejabberd module",
|
|
|
action="store_true")
|
|
|
+ parser.add_argument("--verbose", "-V", help="be verbose, enables debug "
|
|
|
+ "output",
|
|
|
+ action="store_true")
|
|
|
parser.add_argument("--config", "-C", help="path to the configuration "
|
|
|
"file", type=str)
|
|
|
args = parser.parse_args()
|
|
@@ -59,7 +62,10 @@ def main():
|
|
|
except json.JSONDecodeError:
|
|
|
logger.error("Error: Could not parse configuration file")
|
|
|
sys.exit(1)
|
|
|
- logger.setLevel(get_log_level(config["loglevel"]))
|
|
|
+ if args.verbose:
|
|
|
+ logger.setLevel(logging.DEBUG)
|
|
|
+ else:
|
|
|
+ logger.setLevel(get_log_level(config["loglevel"]))
|
|
|
if args.apache:
|
|
|
if config:
|
|
|
apache.run(config["apache"], config["acme_dir"],
|