Skip to content

Commit b0dd8ec

Browse files
committedMay 5, 2024
fix setLoggingEnabled for js
1 parent 2b5afa4 commit b0dd8ec

File tree

1 file changed

+1
-1
lines changed
  • firebase-firestore/src/jsMain/kotlin/dev/gitlive/firebase/firestore

1 file changed

+1
-1
lines changed
 

‎firebase-firestore/src/jsMain/kotlin/dev/gitlive/firebase/firestore/firestore.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ actual class FirebaseFirestore(jsFirestore: Firestore) {
7373
actual fun batch() = rethrow { WriteBatch(writeBatch(js)) }
7474

7575
actual fun setLoggingEnabled(loggingEnabled: Boolean) =
76-
rethrow { setLogLevel( if(loggingEnabled) "error" else "silent") }
76+
rethrow { setLogLevel( if(loggingEnabled) "debug" else "silent") }
7777

7878
actual suspend fun <T> runTransaction(func: suspend Transaction.() -> T) =
7979
rethrow { runTransaction(js, { GlobalScope.promise { Transaction(it).func() } } ).await() }

0 commit comments

Comments
 (0)
Failed to load comments.