Skip to content

Commit 8387a7d

Browse files
authored
bump log level for multiple set_client calls to WARNING (#1164)
it turns out that setting the agent multiple times can result in difficult-to-debug issues, especially when initially using the DjangoClient, and having it replaced with a "bare" Client. See #1093, #1148 By bumping this log message to WARNING, it is a bit more obvious what the problem could be.
1 parent ab0f439 commit 8387a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticapm/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,5 +631,5 @@ def set_client(client):
631631
global CLIENT_SINGLETON
632632
if CLIENT_SINGLETON:
633633
logger = get_logger("elasticapm")
634-
logger.debug("Client object is being set more than once", stack_info=True)
634+
logger.warning("Client object is being set more than once", stack_info=True)
635635
CLIENT_SINGLETON = client

0 commit comments

Comments
 (0)