paullangtree / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
2 stars 0 forks source link

GAILogger still logs to console despite being set to GAILogLevelNone #770

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Name of related library and version, if applicable (e.g. Android, iOS,
Snippets, etc.):
Google Analytics iOS SDK v1.1

Issue summary:

Steps to reproduce issue:

Set up analytics thus:

        var configureError: NSError?
        GGLContext.sharedInstance().configureWithError(&configureError)
        GAI.sharedInstance().logger.logLevel = .None

Expected output:
Nothing!

Actual results:

2015-11-02 12:13:49.423 MyApp[3652:20] <GMR/INFO> App measurement v.1100000 
started
2015-11-02 12:13:49.430 MyApp[3652:425909] Successfully configured [Analytics].
2015-11-02 12:13:49.430 MyApp[3652:425909] Failed to configure [].
2015-11-02 12:13:49.430 MyApp[3652:425909] Subspecs not present, so not 
configured [AdMob, SignIn, AppInvite, CloudMessaging, Maps].
2015-11-02 12:13:49.430 MyApp[3652:425909] Subspecs expected to be present 
[Analytics, Measurement].
2015-11-02 12:13:49.640 MyApp[3652:20] <GMR/INFO> Network status has changed. 
code, status: 2, Connected

Notes:
If GA is not configured properly, then it's probably wiser to cause assertion 
failures rather than just log errors (see 
https://code.google.com/p/analytics-issues/issues/detail?id=762). 

At any rate, if we explicitly set log level to *None* we do expect there to be 
NO LOGGING!

Original issue reported on code.google.com by ariel.el...@project-a.com on 2 Nov 2015 at 11:19