Print detailed log only in debug mode.