We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59250e6 commit 2ee3a0fCopy full SHA for 2ee3a0f
nginxfmt.py
@@ -318,6 +318,10 @@ def _standalone_run(program_arguments):
318
with _redirect_stdout_to_stderr():
319
args = arg_parser.parse_args(program_arguments)
320
321
+ logging.basicConfig(
322
+ level=logging.INFO if args.verbose else logging.ERROR,
323
+ format='%(levelname)s: %(message)s')
324
+
325
try:
326
if args.print_result and len(args.config_files) != 1:
327
raise Exception("if %s is enabled, only one file can be passed as input" % argparse._get_action_name(
0 commit comments