Skip to content

Commit a0e0742

Browse files
amabluea-maurice
authored andcommitted
Minor fix to some log messages in persistent_connection.cc
PiperOrigin-RevId: 269678865
1 parent a262f09 commit a0e0742

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

database/src/desktop/connection/persistent_connection.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ void PersistentConnection::Listen(const QuerySpec& query_spec,
360360
GetDebugQuerySpecString(query_spec).c_str());
361361

362362
FIREBASE_DEV_ASSERT_MESSAGE(listens_.find(query_spec) == listens_.end(),
363-
"Listen() called twice for same QuerySpec.");
363+
"Listen() called twice for same QuerySpec. %s",
364+
GetDebugQuerySpecString(query_spec).c_str());
364365

365366
// listen_id is used to search for QuerySpec later when the response message
366367
// is received.
@@ -707,7 +708,7 @@ void PersistentConnection::WarnOnListenerWarnings(const Variant& warnings,
707708

708709
PersistentConnection::OutstandingListenPtr PersistentConnection::RemoveListen(
709710
const QuerySpec& query_spec) {
710-
logger_->LogDebug("%s Removing query ", log_id_.c_str(),
711+
logger_->LogDebug("%s Removing query %s", log_id_.c_str(),
711712
GetDebugQuerySpecString(query_spec).c_str());
712713

713714
auto it_listen = listens_.find(query_spec);

0 commit comments

Comments
 (0)