Honor loglevel in config

`log` config var wasn't being taken into account.
Fixes #384