如何在启动应用程序时停止Firebase记录状态更新 [英] How to stop Firebase from logging status updates when app is launched

查看:1096
本文介绍了如何在启动应用程序时停止Firebase记录状态更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次启动FireBase应用程序时,都会记录各种Firebase功能的状态。现在这就是记录:

 配置默认的应用程序。 

< FIRAnalytics / INFO> Firebase Analytics v.3200000开始

< FIRAnalytics / INFO>要启用调试日志记录,请设置以下应用程序参数:-FIRAnalyticsDebugEnabled(请参阅...)

< FIRAnalytics / INFO>成功自动创建Firebase Analytics应用程序委托代理。要禁用代理,请在Info.plist

< FIRInstanceID / WARNING>中将标志FirebaseAppDelegateProxyEnabled设置为NO。 FIRInstanceID启用了AppDelegate代理,将swizzle应用程序委托给远程通知处理程序。要禁用将FirebaseAppDelegateProxyEnabled添加到Info.plist并将其设置为NO

< FIRAnalytics / INFO>启用Firebase Analytics

我通过pod查看并没有发现任何打印语句,你可以使用标志<$ c来禁用调试日志记录功能,可以使用 -FIRDebugDisabled

您可以将其添加到 scheme


  1. 选择 Scheme 工具栏

  2. 编辑方案

  3. 选择运行
  4. 添加 -FIRDebugDisabled


Whenever I launch the FireBase app, it logs the status of various Firebase features. Right now this is what is being logged:

Configuring the default app.

<FIRAnalytics/INFO> Firebase Analytics v.3200000 started

<FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see ...)

<FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist

<FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO

<FIRAnalytics/INFO> Firebase Analytics enabled

I looked through the pods and didn't find any print statements so how else would I go about stopping these from being logged overtime I run the app?

解决方案

You can disable the debug logging with the flag -FIRDebugDisabled.

You can add it to your scheme:

  1. Select Scheme toolbar
  2. Edit Scheme
  3. Select Run
  4. Click Arguments and add -FIRDebugDisabled

这篇关于如何在启动应用程序时停止Firebase记录状态更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆