File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Source/SwiftyDropbox/Shared/Handwritten Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public class DropboxClientsManager {
50
50
oauthSetupIntent: OAuthSetupContext ,
51
51
requestsToReconnect: RequestsToReconnect ? = nil
52
52
) {
53
- print ( " GoodNotes Dropbox CLient Manager " )
53
+ LogHelper . log ( . info , " Setup GoodNotes Dropbox Clients Manager" )
54
54
precondition (
55
55
DropboxOAuthManager . sharedOAuthManager == nil ,
56
56
" Only call `DropboxClientsManager.setupWithAppKey` or `DropboxClientsManager.setupWithTeamAppKey` once "
Original file line number Diff line number Diff line change @@ -378,10 +378,12 @@ public class DropboxOAuthManager: AccessTokenRefreshing {
378
378
@discardableResult
379
379
public func storeAccessToken( _ token: DropboxAccessToken ) -> Bool {
380
380
do {
381
+ LogHelper . log ( . info, " attempt to store access token " )
381
382
let jsonEncoder = JSONEncoder ( )
382
383
let data = try jsonEncoder. encode ( token)
383
384
return secureStorageAccess. setAccessTokenData ( for: token. uid, data: data)
384
385
} catch {
386
+ LogHelper . log ( . error, " failed to store access token: \( error. localizedDescription) " )
385
387
return false
386
388
}
387
389
}
You can’t perform that action at this time.
0 commit comments