Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
print version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Feb 17, 2019
1 parent 41276c3 commit 52ec787
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kube_downscaler/__init__.py
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '2019.1.1dev0' # will be replaced during build
4 changes: 2 additions & 2 deletions kube_downscaler/main.py
Expand Up @@ -4,7 +4,7 @@

import logging

from kube_downscaler import cmd, shutdown
from kube_downscaler import __version__, cmd, shutdown
from kube_downscaler.scaler import scale

logger = logging.getLogger('downscaler')
Expand All @@ -17,7 +17,7 @@ def main():
logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s',
level=logging.DEBUG if args.debug else logging.INFO)

logger.info('Downscaler started with config: %s', args)
logger.info(f'Downscaler v{__version__} started with config {args}')

if args.dry_run:
logger.info('**DRY-RUN**: no downscaling will be performed!')
Expand Down

0 comments on commit 52ec787

Please sign in to comment.