diff options
author | Devaev Maxim <[email protected]> | 2019-04-27 04:14:54 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-27 04:14:54 +0300 |
commit | 3476f52da9728995c978394748cec812d554ec2f (patch) | |
tree | 93ed629385b536ebb0e5bb0f984ea5085d0050a5 /kvmd/apps/cleanup | |
parent | c40f13e2d79c2ed23502e3c49f9b1e8c7d23f1c2 (diff) |
apps: init only required sections
Diffstat (limited to 'kvmd/apps/cleanup')
-rw-r--r-- | kvmd/apps/cleanup/__init__.py | 8 |
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 ...") |