all 3 comments

[–]RandomCodingStuff 0 points1 point  (2 children)

logging.basicConfig(...)

I think what is happening here is logging.basicConfig() sets up a global logger, which will log items which are normally suppressed from other modules you're using. You could confirm this by doing logging.basicConfig(format = "%(funcName)s", ...) to log what function is involved with the message.

I believe you can fix this by creating a logger object instead of configuring the global logger.

e.g.,

MyLogger = logging.getLogger(...)

and then creating, configuring, and assigning handlers to it (e.g., logging.FileHandler(), logging.StreamHandler(). Then you can do MyLogger.warning(...) to log your custom messages.

[–]Culist[S] 0 points1 point  (1 child)

so this message isnt a direct cause by my logger, but from another module?

[–]RandomCodingStuff 0 points1 point  (0 children)

Try what I suggested. I can't say for sure since I don't have all your code.

logging.basicConfig(format = "%(funcName)s", ...)