Skip to content

Commit bf53e01

Browse files
authored
Merge pull request #35 from NYPL/de-101-4/add-debug
Debug Statements for Avro Clients
2 parents f9ba81c + 3ba7260 commit bf53e01

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## v1.3.2 8/1/24
3+
- Replaced info statements with debug for security purposes
4+
25
## v1.3.1 7/31/24
36
- Replaced log statement in Avro client with debug
47

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ kinesis_client = KinesisClient(...)
3636
# Do not use any version below 1.0.0
3737
# All available optional dependencies can be found in pyproject.toml.
3838
# See the "Managing dependencies" section below for more details.
39-
nypl-py-utils[kinesis-client,config-helper]==1.3.1
39+
nypl-py-utils[kinesis-client,config-helper]==1.3.2
4040
```
4141

4242
## Developing locally

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "nypl_py_utils"
7-
version = "1.3.1"
7+
version = "1.3.2"
88
authors = [
99
{ name="Aaron Friedman", email="aaronfriedman@nypl.org" },
1010
]

src/nypl_py_utils/classes/avro_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_json_schema(self, platform_schema_url):
3131
Fetches a JSON response from the input Platform API endpoint and
3232
interprets it as an Avro schema.
3333
"""
34-
self.logger.debug(
34+
self.logger.info(
3535
"Fetching Avro schema from {}".format(platform_schema_url))
3636
try:
3737

@@ -133,7 +133,7 @@ def decode_record(self, record):
133133
134134
Returns a dictionary where each key is a field in the schema.
135135
"""
136-
self.logger.info(
136+
self.logger.debug(
137137
"Decoding {rec} using {schema} schema".format(
138138
rec=record, schema=self.schema.name
139139
)

0 commit comments

Comments
 (0)