fix undefined level emitted when .log is used

missed this previously, sorry.