Skip to content

Commit

Permalink
Merge pull request #27 from lobax/master
Browse files Browse the repository at this point in the history
Fix logging: check for /dev/log
  • Loading branch information
KissPeter committed Oct 31, 2019
2 parents c34d0f0 + 5a36ebc commit 18cb66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apifuzzer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_sample_data_by_type(param_type):

def set_logger(level='warning'):
handler = logging.StreamHandler()
if os.path.exists('/dev/null/'):
if os.path.exists('/dev/log'):
handler = SysLogHandler(address='/dev/log', facility=SysLogHandler.LOG_LOCAL2)
handler.setFormatter(Formatter('%(process)d [%(levelname)s] %(name)s: %(message)s'))
logger = logging.getLogger()
Expand Down

0 comments on commit 18cb66b

Please sign in to comment.