Skip to content

Commit 12188d3

Browse files
authored
Remove confusing warning logs in file-based installation store (#1115)
Refer to slackapi/bolt-python#464 for the context of this change
1 parent 961706e commit 12188d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

slack_sdk/oauth/installation_store/file/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ def find_bot(
129129
data = json.loads(f.read())
130130
return Bot(**data)
131131
except FileNotFoundError as e:
132-
message = f"Failed to find bot installation data for enterprise: {e_id}, team: {t_id}: {e}"
133-
self.logger.warning(message)
132+
message = f"Installation data missing for enterprise: {e_id}, team: {t_id}: {e}"
133+
self.logger.debug(message)
134134
return None
135135

136136
async def async_find_installation(
@@ -172,8 +172,8 @@ def find_installation(
172172
data = json.loads(f.read())
173173
return Installation(**data)
174174
except FileNotFoundError as e:
175-
message = f"Failed to find an installation data for enterprise: {e_id}, team: {t_id}: {e}"
176-
self.logger.warning(message)
175+
message = f"Installation data missing for enterprise: {e_id}, team: {t_id}: {e}"
176+
self.logger.debug(message)
177177
return None
178178

179179
async def async_delete_bot(

0 commit comments

Comments
 (0)