You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing an issue where, after invoking TikTokPy methods within my project, my custom logger ceases to function correctly. Specifically, log messages stop appearing or become duplicated, and the intended formatting (including colors and emojis) is lost. It appears that TikTokPy modifies the global logging configuration, which interferes with my application's logging setup.
Environment:
Python Version: 3.9
TikTokPy Version: 0.9.4
Operating System: Windows 10
Logging Libraries: logging, colorlog
Other Dependencies:
notion-client
requests
Additional Information:
Logger Configuration: The custom logger is configured to prevent propagation to the root logger (logger.propagate = False).
TikTokPy Logging: TikTokPy's internal logs are displayed using a different format and do not interfere before calling its methods. However, post invocation, the custom logger's functionality is compromised.
Possible Solution
Isolate TikTokPy's Logger: Ensure that TikTokPy uses its own logger instance without modifying the global or root logger's configuration.
Avoid Global Logging Modifications: TikTokPy should not alter the root logger or remove existing handlers, allowing custom loggers to function independently.
Provide Configuration Options: Allow users to disable TikTokPy's internal logging or set it to a specific log level without affecting other loggers.
The text was updated successfully, but these errors were encountered:
I'm experiencing an issue where, after invoking TikTokPy methods within my project, my custom logger ceases to function correctly. Specifically, log messages stop appearing or become duplicated, and the intended formatting (including colors and emojis) is lost. It appears that TikTokPy modifies the global logging configuration, which interferes with my application's logging setup.
Environment:
Python Version: 3.9
TikTokPy Version: 0.9.4
Operating System: Windows 10
Logging Libraries: logging, colorlog
Other Dependencies:
notion-client
requests
Additional Information:
Logger Configuration: The custom logger is configured to prevent propagation to the root logger (logger.propagate = False).
TikTokPy Logging: TikTokPy's internal logs are displayed using a different format and do not interfere before calling its methods. However, post invocation, the custom logger's functionality is compromised.
Possible Solution
The text was updated successfully, but these errors were encountered: