Skip to content

Commit

Permalink
Environment variable moved to before setting up logging (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-persson authored Sep 7, 2023
1 parent 5213280 commit 709b5f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/etos_test_runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
except PackageNotFoundError:
VERSION = "Unknown"

# Disable sending logs for now.
os.environ["ETOS_ENABLE_SENDING_LOGS"] = "false"

DEV = os.getenv("DEV", "false").lower() == "true"
ENVIRONMENT = "development" if DEV else "production"
setup_logging("ETOS Test Runner", VERSION, ENVIRONMENT)
Expand Down
2 changes: 0 additions & 2 deletions src/etos_test_runner/etr.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ def main(args):

def run():
"""Entry point to ETR."""
# Disable sending logs for now.
os.environ["ETOS_ENABLE_SENDING_LOGS"] = "false"
logging.basicConfig(level=logging.INFO, stream=sys.stdout)
main(sys.argv[1:])

Expand Down

0 comments on commit 709b5f9

Please sign in to comment.