Skip to content

Commit dfebc53

Browse files
committed
add logging
1 parent fb651f4 commit dfebc53

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/SwiftyDropbox/Shared/Handwritten/DropboxClientsManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class DropboxClientsManager {
5050
oauthSetupIntent: OAuthSetupContext,
5151
requestsToReconnect: RequestsToReconnect? = nil
5252
) {
53-
print("GoodNotes Dropbox CLient Manager")
53+
LogHelper.log(.info, "Setup GoodNotes Dropbox Clients Manager")
5454
precondition(
5555
DropboxOAuthManager.sharedOAuthManager == nil,
5656
"Only call `DropboxClientsManager.setupWithAppKey` or `DropboxClientsManager.setupWithTeamAppKey` once"

Source/SwiftyDropbox/Shared/Handwritten/OAuth/OAuthImpl.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,12 @@ public class DropboxOAuthManager: AccessTokenRefreshing {
378378
@discardableResult
379379
public func storeAccessToken(_ token: DropboxAccessToken) -> Bool {
380380
do {
381+
LogHelper.log(.info, "attempt to store access token")
381382
let jsonEncoder = JSONEncoder()
382383
let data = try jsonEncoder.encode(token)
383384
return secureStorageAccess.setAccessTokenData(for: token.uid, data: data)
384385
} catch {
386+
LogHelper.log(.error, "failed to store access token: \(error.localizedDescription)")
385387
return false
386388
}
387389
}

0 commit comments

Comments
 (0)