Learn how to make the most out of the Dropbox Community here 💙. 

Forum Discussion

DylanAshe's avatar
DylanAshe
New member | Level 2
7 years ago

#define kShouldPrintReachabilityFlags 1

ObjectiveDropboxOfficial (3.9.1) Cocoapod's DBSDKReachability.m has this line of code:

 

#define kShouldPrintReachabilityFlags 1

Unfortunately, now when reachability is used, reachability status is dumped to the console:

2018-09-20 13:50:20.276079-0700 XXXX[46488:3471796] DBSDKReachability Flag Status: -R ------- networkStatusForFlags
2018-09-20 13:50:20.279623-0700 XXXX[46488:3471796] DBSDKReachability Flag Status: -R ------- networkStatusForFlags
2018-09-20 13:50:20.283761-0700 XXXX[46488:3471796] DBSDKReachability Flag Status: -R ------- networkStatusForFlags

In our case, not just one, but dozens and dozens -- polluting it our logs -- and hiding other valuble logging information.

We request that you give us a way to turn off the logging by testing if the define is set before setting it:

#ifndef kShouldPrintReachabilityFlags
#define kShouldPrintReachabilityFlags 1
#endif

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for writing this up! I can't make any promises, but I'll send this along as a feature request to the team.