Skip to content

Commit

Permalink
Allow setting LOG_LEVEL via environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bretthoerner committed Mar 4, 2019
1 parent fe18f3f commit 108ae63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry-kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
RELEASE = os.environ.get('RELEASE')
EVENT_NAMESPACE = os.environ.get('EVENT_NAMESPACE')
MANGLE_NAMES = [name for name in os.environ.get('MANGLE_NAMES', default='').split(',') if name]

LOG_LEVEL = os.environ.get('LOG_LEVEL', 'error')

def main():
parser = argparse.ArgumentParser()
parser.add_argument("--log-level", default="error")
parser.add_argument("--log-level", default=LOG_LEVEL)
args = parser.parse_args()

log_level = args.log_level.upper()
Expand Down

0 comments on commit 108ae63

Please # to comment.