Disabling console logs not working

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.5
  • Firebase SDK version: latest
  • Firebase Component: Crashlytics/Dynamic Links (Auth, Core, Database, Firestore, Messaging, Storage, etc)
  • Component version: Manual (Zip file)
  • Installation method: CocoaPods | Carthage | Zip file (select one)

[REQUIRED] Step 2: Describe the problems

I can’t find a way to disable the analytics logs in Xcode. I have tried the following solutions –

  • Added FirDebugDisabled in my project scheme

image

  • Added the following in AppDelegate –
FirebaseConfiguration.shared.setLoggerLevel(.error)

Logs I’m getting –

2020-05-30 15:43:15.571710+0530 App[40610:743980] [Firebase/Crashlytics] Version 4.1.0
2020-05-30 15:43:15.876410+0530 App[40610:744146] 6.24.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60500000 started
2020-05-30 15:43:15.917793+0530 App[40610:744146] 6.24.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2020-05-30 15:43:16.056704+0530 App[40610:743980] WF: === Starting WebFilter logging for process App
2020-05-30 15:43:16.056867+0530 App[40610:743980] WF: _userSettingsForUser : (null)
2020-05-30 15:43:16.057026+0530 App[40610:743980] WF: _WebFilterIsActive returning: NO
2020-05-30 15:43:16.120948+0530 App[40610:744133] 6.24.0 - [Firebase/Analytics][I-ACS031025] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2020-05-30 15:43:16.323311+0530 App[40610:744141] 6.24.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-05-30 15:43:16.576532+0530 App[40610:744145] 6.24.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2020-05-30 15:43:16.819869+0530 App[40610:744258] 6.24.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2020-05-30 15:43:17.809146+0530 App[40610:743980] [ProcessSuspension] 0x10d470780 - ProcessAssertion::processAssertionWasInvalidated()
2020-05-30 15:43:17.875166+0530 App[40610:743980] [ProcessSuspension] 0x10d4707e0 - ProcessAssertion::processAssertionWasInvalidated()
2020-05-30 15:43:18.569350+0530 App[40610:744258] 6.24.0 - [Firebase/Analytics][I-ACS023001] Deep Link does not contain valid required params. URL params: {
    "match_message" = "No pre-install link matched for this device.";
    "request_ip_version" = "IP_V6";
}

1 possible answer(s) on “Disabling console logs not working

  1. It looks like FirebaseAnalytics overrides a previously set log level on initialization. I’ve created internal issue b/157891084 to track.