8000 fix: Don't use deprecated logger.warn (#3552) · Rishit-coder/sentry-python@ed614c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed614c0

Browse files
authored
fix: Don't use deprecated logger.warn (getsentry#3552)
1 parent 64e2977 commit ed614c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sentry_sdk/integrations/langchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def new_configure(*args, **kwargs):
443443
elif isinstance(existing_callbacks, BaseCallbackHandler):
444444
new_callbacks.append(existing_callbacks)
445445
else:
446-
logger.warn("Unknown callback type: %s", existing_callbacks)
446+
logger.debug("Unknown callback type: %s", existing_callbacks)
447447

448448
already_added = False
449449
for callback in new_callbacks:

tests/integrations/django/myapp/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def middleware(request):
132132
except (ImportError, KeyError):
133133
from sentry_sdk.utils import logger
134134

135-
logger.warn("No psycopg2 found, testing with SQLite.")
135+
logger.warning("No psycopg2 found, testing with SQLite.")
136136

137137

138138
# Password validation

0 commit comments

Comments
 (0)
0