Skip to content

Commit

Permalink
log version info and metadata on init (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Oct 26, 2018
1 parent ac87f8a commit 778636d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion synse/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from sanic.exceptions import InvalidUsage, NotFound, ServerError
from sanic.response import text

import synse
from synse import config, errors, utils
from synse.cache import configure_cache
from synse.log import LOGGING, logger, setup_logger
Expand Down Expand Up @@ -61,7 +62,13 @@ def make_app():

configure_cache()

logger.info('Synse Configuration: {}'.format(config.options.config))
# Log out metadata for Synse Server and the application configuration
logger.info('Synse Server:')
logger.info(' version: {}'.format(synse.__version__))
logger.info(' author: {}'.format(synse.__author__))
logger.info(' url: {}'.format(synse.__url__))
logger.info(' license: {}'.format(synse.__license__))
logger.info('Configuration: {}'.format(config.options.config))
return app


Expand Down

0 comments on commit 778636d

Please sign in to comment.