log: Switch to debug format if loglevels has any debug levels
Merge branch 'release/0.18.2' into develop