Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Firebase/Core debug messages in iOS

Tags:

I get several debug messages from Firebase - quite chatty:

2016-10-20 22:18:33.576 Sitch[1190] <Debug> [Firebase/Core][I-COR000019] Clearcut post completed 

I don't see any way to quiet them. FIRAnalytics only shows INFO and more severe but Firebase/Core seems to have debug enabled by default?

This is the cocoapods build - from podfile.lock:

FirebaseCore (3.4.3):     GoogleInterchangeUtilities (~> 1.2)     GoogleUtilities (~> 1.2) 
like image 368
Speedy99 Avatar asked Oct 21 '16 05:10

Speedy99


People also ask

How do I turn off firebase Analytics?

If you need to deactivate Analytics collection permanently in a version of your app, set FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED to YES (Boolean) in your app's Info.

What is Firebasecore?

expo-firebase-core provides access to the Firebase configuration and performs initialisation of the native Firebase App.

How do I enable FIRDebugEnabled?

Enable debug mode by passing the -FIRDebugEnabled argument to the application. You can add this argument in the application's Xcode scheme. When debug mode is enabled via -FIRDebugEnabled, further executions of the application will also be in debug mode.


1 Answers

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

Below are the steps to set this flag.

  • Select Edit schema.
  • Select Run.
  • Select Arguments and add -FIRDebugDisabled.
like image 83
Bhavesh Patel Avatar answered Sep 19 '22 07:09

Bhavesh Patel