1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Use warn rather than info when notifying about ignored conflicts

This commit is contained in:
Andrew Kingston 2022-07-25 12:23:30 +01:00
parent a0380d7b80
commit d63c547dd6
2 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
import BaseCache from "./base"
import { getWritethroughClient } from "../redis/init"
import { logInfo } from "../logging"
import { logWarn } from "../logging"
const DEFAULT_WRITE_RATE_MS = 10000
let CACHE: BaseCache | null = null
@ -53,7 +53,7 @@ export async function put(
throw err
} else {
// Swallow 409s but log them
logInfo(`Ignoring conflict in write-through cache`)
logWarn(`Ignoring conflict in write-through cache`)
}
}
}

View file

@ -15,11 +15,11 @@ export function logAlert(message: string, e?: any) {
console.error(`bb-alert: ${message} ${errorJson}`)
}
export function logInfo(message: string) {
console.log(`bb-info: ${message}`)
export function logWarn(message: string) {
console.warn(`bb-warn: ${message}`)
}
export default {
logAlert,
logInfo,
logWarn,
}