Make logger bulletproof
Fix tests for travis