Skip to content

Commit

Permalink
Merge pull request #11 from deftinc/fix-structlog-to-be-append-friendly
Browse files Browse the repository at this point in the history
use append mode when writing to logs
  • Loading branch information
vinbarnes authored Jun 5, 2024
2 parents 10e4a7b + ae3e017 commit 100e54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature_gate/clients/posthog_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, api_base=None, api_key=None, project_id=None):
project_root = os.path.abspath(os.getenv('PROJECT_ROOT', '.'))
logs_dir_path = Path(project_root, 'logs')
logs_dir_path.mkdir(parents=True, exist_ok=True)
log_file = logs_dir_path.joinpath('development').with_suffix('.log').open('wt')
log_file = logs_dir_path.joinpath('development').with_suffix('.log').open('at')
structlog.configure(
processors=[
merge_contextvars,
Expand Down

0 comments on commit 100e54d

Please sign in to comment.