Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SipLogger class can be used only on Unix/Linux #18

Open
a-tinsmith opened this issue Mar 16, 2016 · 0 comments
Open

SipLogger class can be used only on Unix/Linux #18

a-tinsmith opened this issue Mar 16, 2016 · 0 comments

Comments

@a-tinsmith
Copy link

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.

@a-tinsmith 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant