Skip to content

Commit 4e665b0

Browse files
committed
quiet down logging
1 parent 26df909 commit 4e665b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

garmindb/download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ def save_json_to_file(cls, filename, json_data, overwite=False):
127127
full_filename = f'{filename}.json'
128128
exists = os.path.isfile(full_filename)
129129
if not exists or overwite:
130-
logger.info("%s %s", 'Overwriting' if exists else 'Saving', full_filename)
130+
logger.debug("%s %s", 'Overwriting' if exists else 'Saving', full_filename)
131131
with open(full_filename, 'w') as file:
132132
file.write(json.dumps(json_data, default=cls.__convert_to_json))
133133

134134
def save_binary_file(self, filename, url, overwite=False):
135135
"""Save binary data to a file."""
136136
exists = os.path.isfile(filename)
137137
if not exists or overwite:
138-
logger.info("%s %s", 'Overwriting' if exists else 'Saving', filename)
138+
logger.debug("%s %s", 'Overwriting' if exists else 'Saving', filename)
139139
response = self.garth.get("connectapi", url, api=True)
140140
with open(filename, 'wb') as file:
141141
for chunk in response:

0 commit comments

Comments
 (0)