Fix logging bug

This was causing https://github.com/EmmanuelOga/firering/issues/22 and https://github.com/zerowidth/camper_van/issues/52. 

The API still needs to be updated, but at least the code won't die.