Skip to content

Commit 4e04385

Browse files
authored
Merge pull request #8 from deftinc/fix/logs-directory
store logs in logs directory
2 parents eb205a9 + 058ad9a commit 4e04385

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

feature_gate/adapters/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def __init__(self):
2121
structlog.processors.JSONRenderer(),
2222
],
2323
logger_factory=structlog.WriteLoggerFactory(
24-
file=Path("development").with_suffix(".log").open("wt")
24+
file=Path("logs").joinpath("development").with_suffix(".log").open("wt")
2525
),
2626
)
2727
self._logger = structlog.get_logger()

feature_gate/clients/posthog_api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, api_base=None, api_key=None, project_id=None):
4242
structlog.processors.JSONRenderer(),
4343
],
4444
logger_factory=structlog.WriteLoggerFactory(
45-
file=Path("development").with_suffix(".log").open("wt")
45+
file=Path("logs").joinpath("development").with_suffix(".log").open("wt")
4646
),
4747
)
4848
self.logger = structlog.get_logger()

0 commit comments

Comments
 (0)