Skip to content

Commit 319a2fb

Browse files
committed
Clean up logging
1 parent d170cd8 commit 319a2fb

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/host/app/services/matrix-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1465,12 +1465,12 @@ export default class MatrixService extends Service {
14651465
event.sender &&
14661466
event.content
14671467
) {
1468-
console.log('Received realm event', event);
1468+
realmEventsLogger.debug('Received realm event', event);
14691469
if (
14701470
this.startedAtTs === -1 ||
14711471
(event.origin_server_ts || 0) < this.startedAtTs
14721472
) {
1473-
console.log(
1473+
realmEventsLogger.debug(
14741474
'Ignoring realm event because it occurred before the client started',
14751475
event,
14761476
);

packages/host/app/services/store.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ export default class StoreService extends Service {
238238
let subscriber = this.subscribers.get(invalidation);
239239
if (subscriber) {
240240
let liveCard = this.identityContext.get(invalidation);
241-
console.log('handleInvalidations', {
242-
'event.clientRequestId': event.clientRequestId,
243-
event: event,
244-
});
245241
if (liveCard) {
246242
// Do not reload if the event is a result of a request that we made. Otherwise we risk overwriting
247243
// the inputs with past values. This can happen if the user makes edits in the time between the auto
@@ -253,7 +249,7 @@ export default class StoreService extends Service {
253249
this.reload.perform(liveCard);
254250
} else {
255251
if (this.cardService.clientRequestIds.has(event.clientRequestId)) {
256-
console.log(
252+
console.debug(
257253
'ignoring invalidation for card because clientRequestId is ours',
258254
event,
259255
);

0 commit comments

Comments
 (0)