diff --git a/drivers/aliyundrive_open/util.go b/drivers/aliyundrive_open/util.go index bef6fed696c..37895b8a948 100644 --- a/drivers/aliyundrive_open/util.go +++ b/drivers/aliyundrive_open/util.go @@ -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 diff --git a/internal/conf/config.go b/internal/conf/config.go index 06a6973a3a2..67c2dc0fa56 100644 --- a/internal/conf/config.go +++ b/internal/conf/config.go @@ -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,