Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Paul A.57's avatar
Paul A.57
New member | Level 1
9 years ago

Control log level in Sync API for iOS

I realise that the Sync API is now deprecated, but as an iOS developer working with a large existing Objective-C application I can't switch to the new Swift SDK, so I'm trying to make do.

One annoyance that I have is that the Sync SDK fills my logs with warnings (e.g. "device is offline") which I don't want to have. I switched from using the Core SDK to the Sync SDK specifically to allow my users to send files to Dropbox when their device isn't connected to the internet, and have the files synced automatically when they connect later.

In the Core SDK, there is a DBLog class which allows to control which log messages are printed, but there doesn't seem to be anything similar in the Sync API. Is there a solution to this?

Relatedly, when I download the Core SDK I get all the source .m files, whereas with the Sync SDK I only have access to the headers. Why is this? If I could access the code I'd be happy to turn these messages off manually. Since it's deprecated anyway, would Dropbox consider making the Sync SDK source code public?

3 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    Hi Paul, thanks for the feedback!

    Unfortunately, I don't believe there's a way to control the logging from the Sync SDK.

    Also, the Sync SDK isn't open source like the Core SDK is, but I'll be sure to pass this along as a request to make it open source.

  • Paul A.57's avatar
    Paul A.57
    New member | Level 1
    9 years ago

    Hi Gregory – thanks for the reply, and for offering to pass the request along. Please let me know if you hear anything more about this.

  • Paul A.57's avatar
    Paul A.57
    New member | Level 1
    9 years ago

    Also, another even bigger annoyance is that these warnings trigger Exception Breakpoints, so when I'm developing with a device that isn't connected to the internet it stops every few seconds due to the "device is offline" warning. I really need a way to turn this off!

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!