Print log only if requested