Skip to content

Commit

Permalink
Add warning if using both rotation and setting dataset_timestamp (#557)
Browse files Browse the repository at this point in the history
* Add warning if using both rotation and setting dataset_timestamp
* update poetry cache key to use new cache and avoid is_absolute path bug
  • Loading branch information
jamie256 committed May 11, 2022
1 parent 44f2183 commit d732121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-
key: ${{ runner.os }}-poetry2-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry2-
- name: Install dependencies
run: make install
- name: Run build, style, and lint checks
Expand Down
2 changes: 2 additions & 0 deletions src/whylogs/app/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def __init__(
self.dataset_timestamp = datetime.datetime.now(datetime.timezone.utc)
else:
self.dataset_timestamp = dataset_timestamp
if with_rotation_time is not None:
self._py_logger.warning("dataset_timestamp specified with log rotation! dataset_timestamp ignored")
self.dataset_name = dataset_name
self.writers = writers
self.metadata_writer = metadata_writer
Expand Down

0 comments on commit d732121

Please sign in to comment.