Skip to content

Commit

Permalink
handle empty logzio token
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed May 26, 2023
1 parent 0507c2d commit 2567261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olmo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def local_rank0_filter(record: logging.LogRecord) -> int:
logging.basicConfig(handlers=[handler], level=logging.INFO)

logzio_token = os.environ.get("LOGZIO_TOKEN", None)
if logzio_token is not None:
if logzio_token:
from logzio.handler import LogzioHandler

logzio_handler = LogzioHandler(logzio_token)
Expand Down

0 comments on commit 2567261

Please sign in to comment.