Skip to content

Commit

Permalink
Improve logging in main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed Sep 10, 2024
1 parent 22a7e17 commit cda7fb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# See: https://mkdocs-macros-plugin.readthedocs.io/en/latest

import os
import os, logging


log = logging.getLogger('mkdocs')


def define_env(env):
tag = os.environ.get('RELEASE_TAG', '')
if not tag:
print('Warning: RELEASE_TAG environment variable not set. Defaulting to "dev".')
log.warning('RELEASE_TAG environment variable not set. Defaulting to "dev".')
tag = 'dev'


Expand Down

0 comments on commit cda7fb9

Please sign in to comment.