Skip to content

Commit

Permalink
feat(aliyundrive_open): record token exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Aug 8, 2023
1 parent 635809c commit 95386d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions drivers/aliyundrive_open/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (d *AliyundriveOpen) refreshToken() error {
if refresh == "" {
return errors.New("failed to refresh token: refresh token is empty")
}
log.Infof("[ali_open] toekn exchange: %s -> %s", d.RefreshToken, refresh)
d.RefreshToken, d.AccessToken = refresh, access
op.MustSaveDriverStorage(d)
return nil
Expand Down
4 changes: 2 additions & 2 deletions internal/conf/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func DefaultConfig() *Config {
Log: LogConfig{
Enable: true,
Name: logPath,
MaxSize: 10,
MaxBackups: 5,
MaxSize: 50,
MaxBackups: 30,
MaxAge: 28,
},
MaxConnections: 0,
Expand Down

0 comments on commit 95386d7

Please sign in to comment.