Reduce log file size

This commit is contained in:
Fedor Indutny 2021-08-09 15:04:17 -07:00 committed by GitHub
parent 9078919545
commit 8703b0e020
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View file

@ -7,7 +7,7 @@ import { join } from 'path';
import { Worker } from 'worker_threads'; import { Worker } from 'worker_threads';
const ASAR_PATTERN = /app\.asar$/; const ASAR_PATTERN = /app\.asar$/;
const MIN_TRACE_DURATION = 10; const MIN_TRACE_DURATION = 40;
export type InitializeOptions = { export type InitializeOptions = {
readonly configDir: string; readonly configDir: string;

View file

@ -1058,7 +1058,6 @@ export default class MessageReceiver
certificate, certificate,
unsealedContent: messageContent, unsealedContent: messageContent,
}; };
const newLogId = this.getEnvelopeId(newEnvelope);
const validationResult = await this.validateUnsealedEnvelope(newEnvelope); const validationResult = await this.validateUnsealedEnvelope(newEnvelope);
if (validationResult && validationResult.isBlocked) { if (validationResult && validationResult.isBlocked) {
@ -1066,10 +1065,6 @@ export default class MessageReceiver
return undefined; return undefined;
} }
window.log.info(
`MessageReceiver.unsealEnvelope(${logId}): unwrapped into ${newLogId}`
);
return newEnvelope; return newEnvelope;
} }