Closed wuzzapcom closed 4 years ago
Hi, Thanks for the report, I'm checking it. Come back to you shortly
I've got the same issue when running it in a docker container. The issue is that it is trying to log to use syslog to log to /dev/log
, which doesn't exist in a docker container nor in OSX.
The following workaround works for me. Apply these changes to set_logger
in apifuzzer/utils.py
:
def set_logger(level='warning'):
handler = logging.StreamHandler()
if os.path.exists('/dev/null/'):
handler = SysLogHandler(address='/dev/log', facility=SysLogHandler.LOG_LOCAL2)
Add import os
in the top as well, and the logger will log to std out. The best approach is probably to have a file logger to fall back to though.
@wuzzapcom Please check if the fix by @lobax has resolved it. Thanks
@KissPeter the issue has been fixed @lobax thank you for patch, great job!
Tried to run APIFuzzer in both host system(macos) and in docker container(python:3.7-alpine).
Steps to reproduce:
Here is my stdout:
Log from
./kittylogs
: