Is there a way to turn of logging for the iOS SDK?

2,618 views
Skip to first unread message

Russell Ivanovic

unread,
Aug 16, 2016, 9:54:54 AM8/16/16
to Firebase Google Group
I realise this might seem like a minor thing but every time I start my app I get these logs:
2016-08-16 15:29:31.219 podcasts[629:] <FIRAnalytics/INFO> Firebase Analytics v.3300000 started
2016-08-16 15:29:31.227 podcasts[629:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
2016-08-16 15:29:31.286 podcasts[629:] <FIRAnalytics/INFO> Firebase Analytics enabled

And every time the network isn't available I get a tonne of these:
2016-08-16 15:29:31.790 podcasts[629:590703] <Firebase/Network/ERROR> Encounter network error. Error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={NSUnderlyingError=0x1457ef7a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=The Internet connection appears to be offline.}

 
It could just be me but it seems like bad hygiene to have a third party library spamming my console log. As someone who only logs out things when I absolutely need them it's annoying to go through these trying to get to my log messages. I tried search Stack Overflow (where it seems people want the same thing http://stackoverflow.com/questions/37311089/how-to-stop-firebase-from-logging-status-updates-when-app-is-launched) but there doesn't appear to be a way to disable these. Can I humbly suggest that either a way is added or these log messages just removed?

Matthijs Otterloo

unread,
Nov 22, 2016, 11:02:28 AM11/22/16
to Firebase Google Group
I'm having the exact same problem. A fix is much appreciated.

Op dinsdag 16 augustus 2016 15:54:54 UTC+2 schreef Russell Ivanovic:

Salman Qadri

unread,
Nov 22, 2016, 12:55:04 PM11/22/16
to fireba...@googlegroups.com
Thanks for bringing this up. This certainly is on our radar and we will be working towards finding ways to improve our logging experience on iOS.

Salman Qadri
Product Manager, Firebase SDKs

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c698eb56-97fd-46dc-9e6e-5250ff054f2a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Mike Welsh

unread,
Jan 31, 2017, 8:38:07 PM1/31/17
to Firebase Google Group
Is there any update on this? This is quite noisy and can make debugging our own application quite difficult.


On Tuesday, November 22, 2016 at 12:55:04 PM UTC-5, Salman Qadri wrote:
Thanks for bringing this up. This certainly is on our radar and we will be working towards finding ways to improve our logging experience on iOS.

Salman Qadri
Product Manager, Firebase SDKs

On Tue, Nov 22, 2016 at 7:03 AM, Matthijs Otterloo <matthijs...@gmail.com> wrote:
I'm having the exact same problem. A fix is much appreciated.

Op dinsdag 16 augustus 2016 15:54:54 UTC+2 schreef Russell Ivanovic:
I realise this might seem like a minor thing but every time I start my app I get these logs:
2016-08-16 15:29:31.219 podcasts[629:] <FIRAnalytics/INFO> Firebase Analytics v.3300000 started
2016-08-16 15:29:31.227 podcasts[629:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
2016-08-16 15:29:31.286 podcasts[629:] <FIRAnalytics/INFO> Firebase Analytics enabled

And every time the network isn't available I get a tonne of these:
2016-08-16 15:29:31.790 podcasts[629:590703] <Firebase/Network/ERROR> Encounter network error. Error: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={NSUnderlyingError=0x1457ef7a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12}}, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=The Internet connection appears to be offline.}

 
It could just be me but it seems like bad hygiene to have a third party library spamming my console log. As someone who only logs out things when I absolutely need them it's annoying to go through these trying to get to my log messages. I tried search Stack Overflow (where it seems people want the same thing http://stackoverflow.com/questions/37311089/how-to-stop-firebase-from-logging-status-updates-when-app-is-launched) but there doesn't appear to be a way to disable these. Can I humbly suggest that either a way is added or these log messages just removed?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Cameron Ehrlich

unread,
Feb 19, 2017, 7:05:42 PM2/19/17
to Firebase Google Group
Would love an update on this, the logs are very obtrusive...

Mike Welsh

unread,
Feb 27, 2017, 6:08:14 PM2/27/17
to Firebase Google Group
Latest version of Firebase seems to have better settings for log levels.

Thank you very much.
Reply all
Reply to author
Forward
0 new messages