From 8703b0e02018d01bbf50a0113663477dd4f2399f Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Mon, 9 Aug 2021 15:04:17 -0700 Subject: [PATCH] Reduce log file size --- ts/sql/main.ts | 2 +- ts/textsecure/MessageReceiver.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/ts/sql/main.ts b/ts/sql/main.ts index 4dbf6bcdb76b..55fb927bc371 100644 --- a/ts/sql/main.ts +++ b/ts/sql/main.ts @@ -7,7 +7,7 @@ import { join } from 'path'; import { Worker } from 'worker_threads'; const ASAR_PATTERN = /app\.asar$/; -const MIN_TRACE_DURATION = 10; +const MIN_TRACE_DURATION = 40; export type InitializeOptions = { readonly configDir: string; diff --git a/ts/textsecure/MessageReceiver.ts b/ts/textsecure/MessageReceiver.ts index cb413d3bbed3..4285178abecd 100644 --- a/ts/textsecure/MessageReceiver.ts +++ b/ts/textsecure/MessageReceiver.ts @@ -1058,7 +1058,6 @@ export default class MessageReceiver certificate, unsealedContent: messageContent, }; - const newLogId = this.getEnvelopeId(newEnvelope); const validationResult = await this.validateUnsealedEnvelope(newEnvelope); if (validationResult && validationResult.isBlocked) { @@ -1066,10 +1065,6 @@ export default class MessageReceiver return undefined; } - window.log.info( - `MessageReceiver.unsealEnvelope(${logId}): unwrapped into ${newLogId}` - ); - return newEnvelope; }