summaryrefslogtreecommitdiff
path: root/kvmd/apps/cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/apps/cleanup')
-rw-r--r--kvmd/apps/cleanup/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py
index bf5e4455..8c9af7fe 100644
--- a/kvmd/apps/cleanup/__init__.py
+++ b/kvmd/apps/cleanup/__init__.py
@@ -36,7 +36,13 @@ from .. import init
# =====
def main(argv: Optional[List[str]]=None) -> None:
- config = init("kvmd-cleanup", description="Kill KVMD and clear resources", argv=argv)[2].kvmd
+ config = init(
+ prog="kvmd-cleanup",
+ description="Kill KVMD and clear resources",
+ sections=["logging", "kvmd"],
+ argv=argv,
+ )[2].kvmd
+
logger = get_logger(0)
logger.info("Cleaning up ...")