From 3476f52da9728995c978394748cec812d554ec2f Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 27 Apr 2019 04:14:54 +0300 Subject: apps: init only required sections --- kvmd/apps/cleanup/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'kvmd/apps/cleanup') 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 ...") -- cgit v1.2.3