pywebsocket as Apache modul, set log-level

37 views
Skip to first unread message

Kubi

unread,
Feb 27, 2013, 8:31:57 AM2/27/13
to pyweb...@googlegroups.com
Hello,
I have seen that it is possible to set log-level for standalone pywebsockets server. How to set that if websocket server is run as apache's module? Will the pywebsocket then use default apache error log?

Thank you :)

Takashi Toyoshima

unread,
Feb 27, 2013, 8:50:03 AM2/27/13
to pyweb...@googlegroups.com
Yes. When you use pywebsocket as a Apache module, logs appear in the default Apache log.
You can specify log-level by using LogLevel directive.




--
 
---
You received this message because you are subscribed to the Google Groups "pywebsocket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pywebsocket...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kubi

unread,
Feb 28, 2013, 3:16:47 AM2/28/13
to pyweb...@googlegroups.com
Thank you :) ... now i know my error was in indention (some was tabs, some spaces)

I have one more question, does the pywebsocket support byte compiled .pyc files for handlers? Can I compile my handlers and put them in the same directory?

Takashi Toyoshima

unread,
Feb 28, 2013, 7:58:21 PM2/28/13
to pyweb...@googlegroups.com
I'm not familiar with python interpreter internals.
From the viewpoint of pywebsocket, handlers are imported via 'exec'. If you already know a technique to compile dynamically generated code to pyc, you may be able to use it though you may need to modify handler management code in pywebsocket, too.
Reply all
Reply to author
Forward
0 new messages