fix(set-serializable): logging limit
This commit is contained in:
parent
dfe68d5924
commit
60be62b63b
@ -37,7 +37,7 @@ setSerializable' policy act = do
|
|||||||
-> ReaderT SqlBackend m ()
|
-> ReaderT SqlBackend m ()
|
||||||
logRetry _ shouldRetry@False err status = $logErrorS "SQL.setSerializable" . pack $ defaultLogMsg shouldRetry err status
|
logRetry _ shouldRetry@False err status = $logErrorS "SQL.setSerializable" . pack $ defaultLogMsg shouldRetry err status
|
||||||
logRetry (Just limit) shouldRetry err status
|
logRetry (Just limit) shouldRetry err status
|
||||||
| fromIntegral limit >= rsIterNumber status = $logInfoS "SQL.setSerializable" . pack $ defaultLogMsg shouldRetry err status
|
| fromIntegral limit <= rsIterNumber status = $logInfoS "SQL.setSerializable" . pack $ defaultLogMsg shouldRetry err status
|
||||||
logRetry _ shouldRetry err status = $logDebugS "SQL.setSerializable" . pack $ defaultLogMsg shouldRetry err status
|
logRetry _ shouldRetry err status = $logDebugS "SQL.setSerializable" . pack $ defaultLogMsg shouldRetry err status
|
||||||
|
|
||||||
act' :: TVar Bool -> RetryStatus -> ReaderT SqlBackend m a
|
act' :: TVar Bool -> RetryStatus -> ReaderT SqlBackend m a
|
||||||
|
|||||||
Reference in New Issue
Block a user