Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski committed Dec 7, 2024
1 parent 732d8b9 commit b4aaf91
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions run_all_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from multiprocessing import Pool, Process
from typing import Any

import google.cloud.logging
from google.cloud import logging as cloud_logging

import run_one_experiment
from data_prep import introspector
Expand All @@ -36,9 +36,10 @@
from llm_toolkit import models, prompt_builder

try:
client = google.cloud.logging.Client()
client = cloud_logging.Client()
client.setup_logging()
except google.auth.exceptions.DefaultCredentialsError:
except Exception as e:
# For local runs we continue
pass

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -523,9 +524,6 @@ def main():

args = parse_args()
_setup_logging(args.log_level)
logging.info('Starting experiments on PR branch')
logging.warning('Warning from logging')
logging.error('Error from exp')
logger.info('Starting experiments on PR branch')

# Capture time at start
Expand Down

0 comments on commit b4aaf91

Please sign in to comment.