Allowing logWarn to take an object for warning.
This commit is contained in:
parent
4e560a1f32
commit
deca999183
|
@ -21,6 +21,6 @@ export function logAlertWithInfo(
|
||||||
logAlert(message, error)
|
logAlert(message, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function logWarn(message: string) {
|
export function logWarn(message: string, e?: any) {
|
||||||
console.warn(`bb-warn: ${message}`)
|
console.warn(`bb-warn: ${message}`, e)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue