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
b2bua_simple.py won't run on Windows. It fails to start with the error: ImportError: No module named fcntl
SipLogger.py imports fcntl and syslog modules, which are available only under Linux/Unix platforms.
Python runtime provides msvcrt.locking method that is somewhat similar to fcntl.flock. So, it seems that making AsyncLogger.do_write working on both platforms is quite straightforward.
AsyncLoggerSyslog should be available only on platforms that have syslog, otherwise SIPLOG_BEND=syslog should be rejected (with warning) and defaulted to a file.
The text was updated successfully, but these errors were encountered:
a-tinsmith
changed the title
SipLogger class can be used only under Linux
SipLogger class can be used only on Unix/Linux
Mar 16, 2016
b2bua_simple.py
won't run on Windows. It fails to start with the error:ImportError: No module named fcntl
SipLogger.py
importsfcntl
andsyslog
modules, which are available only under Linux/Unix platforms.Python runtime provides
msvcrt.locking
method that is somewhat similar tofcntl.flock
. So, it seems that makingAsyncLogger.do_write
working on both platforms is quite straightforward.AsyncLoggerSyslog
should be available only on platforms that havesyslog
, otherwiseSIPLOG_BEND=syslog
should be rejected (with warning) and defaulted to a file.The text was updated successfully, but these errors were encountered: