Replies: 2 comments
-
I will really appreciate a solution to this. How are you able to get the logger in settings.py to work. Mine doesn't work. @sorter |
Beta Was this translation helpful? Give feedback.
-
Hello @sorter As the connect function is called within a try and except block already, I guess warnings are being discarded. Can you try this? logger.setLevel(logging.INFO) I will try and fix it if it doesn't as soon as I get time. Don't think it is an issue with channels. |
Beta Was this translation helpful? Give feedback.
-
Hello.
I have an issue where logging statements are not working in subclasses of
WebsocketConsumer
. Logger works in the entry point to the daphne application and even above the class declaration but not within the consumer.Your OS and runtime environment, and browser if applicable
Ubuntu 18.04.4 LTS
A
pip freeze
output showing your package versionsfreeze.txt
What you expected to happen vs. what actually happened
Expected logging to work normally and for logs to show up wherever I invoke
logger.info(...)
How you're running Channels (runserver? daphne/runworker? Nginx/Apache in front?)
Daphne, nginx
Beta Was this translation helpful? Give feedback.
All reactions