Skip to content

Commit

Permalink
[process]. add swagger info to log while starting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedgehogues committed Aug 17, 2020
1 parent 2cc6d4a commit 2272cdc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

logger.info(f'app: {info.name}; version: {info.version}')
logger.info(f'environment: {config.VAULT_ENV}')
swagger_endpoint = f'{config.{{ cookiecutter.python_package }}_schema}://{config.{{ cookiecutter.python_package }}_host}:{config.new_template_port}/api-key?{config.{{ cookiecutter.python_package }}_api_key_name}={config.{{ cookiecutter.python_package }}_api_key}'
logger.info(f'swagger: {swagger_endpoint}')
if __name__ == "__main__":
start_http_server(config.prometheus_port)
logger.info(f'prometheus port: {config.prometheus_port}')
Expand Down

0 comments on commit 2272cdc

Please sign in to comment.