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)
|
||||
}
|
||||
|
||||
export function logWarn(message: string) {
|
||||
console.warn(`bb-warn: ${message}`)
|
||||
export function logWarn(message: string, e?: any) {
|
||||
console.warn(`bb-warn: ${message}`, e)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue