Skip to content

Commit

Permalink
Remove newlines from log message (#333)
Browse files Browse the repository at this point in the history
This makes the logs less grep-able
  • Loading branch information
mathialo authored Jun 12, 2024
1 parent 3ff518a commit 345c0b7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## Next Release

## 7.2.1

### Changed

* Reformat log messages to not have newlines

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion cognite/extractorutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
Cognite extractor utils is a Python package that simplifies the development of new extractors.
"""

__version__ = "7.2.0"
__version__ = "7.2.1"
from .base import Extractor
4 changes: 2 additions & 2 deletions cognite/extractorutils/uploader/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ def _upload_batch(upload_this: List[Dict], retries: int = 5) -> List[Dict]:
missing = [id_dict for id_dict in ex.not_found if id_dict.get("externalId") not in retry_these]
missing_num = len(ex.not_found) - len(create_these_ids)
self.logger.error(
f"{missing_num} time series not found, and could not be created automatically:\n"
f"{missing_num} time series not found, and could not be created automatically: "
+ str(missing)
+ "\nData will be dropped"
+ " Data will be dropped"
)

# Remove entries with non-existing time series from upload queue
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cognite-extractor-utils"
version = "7.2.0"
version = "7.2.1"
description = "Utilities for easier development of extractors for CDF"
authors = ["Mathias Lohne <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 345c0b7

Please sign in to comment.