fixed logging when log-level set as well as --debug