Fix traceback on Linux that break getting http log