print more logs when running with debug