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 expected to see output formatted and levels enabled as in settings.py.
Notice it does seem to work for the runserver command (both through daphne obviously).
Is this maybe only for development? And solved in Daphne standalone?
Setup:
Ubuntu / chrome
Django==2.1
channels==2.1.6
The text was updated successfully, but these errors were encountered:
routing.py
application = ProtocolTypeRouter({
...
'channel': ChannelNameRouter({
'process-mailbox': ProcessMailboxConsumer,
}),
})
process_mailbox_consumer.py
import logging
from channels.consumer import SyncConsumer
logger = logging.getLogger('clock')
class ProcessMailboxConsumer(SyncConsumer):
def process(self, message):
logging.debug('test')
logging.info('test')
logging.warning('test')
logging.error('test')
run
(venv) ➜ cclks git:(develop) ✗ python manage.py runworker process-mailbox -v3
2019-01-11 09:24:50,671 MainProcess(20985) MainThread(0x7f0a739c0740) django.channels.worker INFO runworker handle Running worker for channels ['process-mailbox'] runworker.py(40)
WARNING:root:test
ERROR:root:test
I expected to see output formatted and levels enabled as in settings.py.
Notice it does seem to work for the runserver command (both through daphne obviously).
Is this maybe only for development? And solved in Daphne standalone?
Setup:
The text was updated successfully, but these errors were encountered: