feat: publish sanitized custom.97 source
This commit is contained in:
1022 files changed
+69903
-19207
No files matched your search
+3
-3
@@ -40,7 +40,7 @@ func (user *UserBase) GetSetting() dto.UserSetting {
|
||||
if user.Setting != "" {
|
||||
err := common.Unmarshal([]byte(user.Setting), &setting)
|
||||
if err != nil {
|
||||
common.SysLog("failed to unmarshal setting: " + err.Error())
|
||||
common.SysLog(common.LogText("failed to unmarshal setting: %s", err.Error()))
|
||||
}
|
||||
}
|
||||
return setting
|
||||
@@ -108,7 +108,7 @@ func GetUserCache(userId int) (*UserBase, error) {
|
||||
if errors.Is(err, ErrUserAuthCachePending) {
|
||||
return nil, err
|
||||
}
|
||||
common.SysLog("failed to synchronously populate user cache: " + err.Error())
|
||||
common.SysLog(common.LogText("failed to synchronously populate user cache: %s", err.Error()))
|
||||
}
|
||||
}
|
||||
return user.ToBaseUser(), nil
|
||||
@@ -160,7 +160,7 @@ func syncCreditUserQuotaCache(userId int, quota int, operation string) {
|
||||
return
|
||||
}
|
||||
if err := cacheIncrUserQuota(userId, int64(quota)); err != nil {
|
||||
common.SysLog(fmt.Sprintf("failed to sync %s credit to user quota cache: %s", operation, err.Error()))
|
||||
common.SysLog(common.LogText("failed to sync %s credit to user quota cache: %s", operation, err.Error()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user