Skip to content

Commit 4971429

Browse files
committed
fix: use logWithFlair instead
1 parent 5ac5311 commit 4971429

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/utils-firestore/src/throwFns.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { isCollectionModule, isDocModule } from '@magnetarjs/utils'
1+
import { isCollectionModule, isDocModule, logWithFlair } from '@magnetarjs/utils'
22
import { isFullString } from 'is-what'
33

44
export function logError(errorMessage: string): undefined {
5-
console.error('[@magnetarjs/plugin-firestore error]\n', errorMessage)
5+
logWithFlair('@magnetarjs/plugin-firestore', { error: true }, errorMessage)
66
}
77

88
export function logErrorAndThrow(errorMessage: string): undefined {
@@ -12,7 +12,7 @@ export function logErrorAndThrow(errorMessage: string): undefined {
1212

1313
export function throwIfInvalidFirestorePath(
1414
firestorePath: string,
15-
moduleType?: 'collection' | 'doc'
15+
moduleType?: 'collection' | 'doc',
1616
): undefined {
1717
let errorMessage = ''
1818
// no firestorePath found

0 commit comments

Comments
 (0)