Fix log level reset

Fixes #19.