Skip to content

Commit

Permalink
introduce cloud logging (#747)
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored Dec 9, 2024
1 parent 2b6476e commit 1d64e9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions run_all_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,22 @@
from multiprocessing import Pool, Process
from typing import Any

from google.cloud import logging as cloud_logging

import run_one_experiment
from data_prep import introspector
from experiment import benchmark as benchmarklib
from experiment import evaluator, oss_fuzz_checkout, textcov
from experiment.workdir import WorkDirs
from llm_toolkit import models, prompt_builder

try:
client = cloud_logging.Client()
client.setup_logging()
except Exception as e:
# For local runs we continue
pass

logger = logging.getLogger(__name__)

# WARN: Avoid large NUM_EXP for local experiments.
Expand Down

0 comments on commit 1d64e9d

Please sign in to comment.