summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/kvmd/logging.yaml2
-rw-r--r--kvmd/apps/__init__.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/configs/kvmd/logging.yaml b/configs/kvmd/logging.yaml
index e572ad32..54f7c5ae 100644
--- a/configs/kvmd/logging.yaml
+++ b/configs/kvmd/logging.yaml
@@ -11,7 +11,7 @@ handlers:
console:
level: DEBUG
class: logging.StreamHandler
- stream: ext://sys.stdout
+ stream: ext://sys.stderr
formatter: console
root:
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 92577a93..314c6b1b 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -126,11 +126,11 @@ def init(
add_help=add_help,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
- parser.add_argument("-c", "--config", dest="config_path", default="/etc/kvmd/main.yaml", type=valid_abs_file,
+ parser.add_argument("-c", "--config", default="/etc/kvmd/main.yaml", type=valid_abs_file,
help="Set config file path", metavar="<file>")
- parser.add_argument("-o", "--set-options", dest="set_options", default=[], nargs="+",
+ parser.add_argument("-o", "--set-options", default=[], nargs="+",
help="Override config options list (like sec/sub/opt=value)", metavar="<k=v>",)
- parser.add_argument("-m", "--dump-config", dest="dump_config", action="store_true",
+ parser.add_argument("-m", "--dump-config", action="store_true",
help="View current configuration (include all overrides)")
if check_run:
parser.add_argument("--run", dest="run", action="store_true",
@@ -139,7 +139,7 @@ def init(
if options.dump_config:
_dump_config(_init_config(
- config_path=options.config_path,
+ config_path=options.config,
override_options=options.set_options,
load_auth=True,
load_hid=True,
@@ -148,7 +148,7 @@ def init(
load_gpio=True,
))
raise SystemExit()
- config = _init_config(options.config_path, options.set_options, **load)
+ config = _init_config(options.config, options.set_options, **load)
logging.captureWarnings(True)
logging.config.dictConfig(config.logging)