Use logger interface in main sql worker

This commit is contained in:
Fedor Indutny 2021-09-16 14:54:06 -07:00 committed by GitHub
parent 04aad09590
commit 87b56fcfd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 230 additions and 119 deletions

View file

@ -22,6 +22,7 @@ import { BodyRangesType } from '../types/Util';
import type { QualifiedAddressStringType } from '../types/QualifiedAddress';
import type { UUIDStringType } from '../types/UUID';
import type { RemoveAllConfiguration } from '../types/RemoveAllConfiguration';
import type { LoggerType } from '../types/Logging';
export type AttachmentDownloadJobTypeType =
| 'long-message'
@ -549,7 +550,11 @@ export type ServerInterface = DataInterface & {
// Server-only
initialize: (options: { configDir: string; key: string }) => Promise<void>;
initialize: (options: {
configDir: string;
key: string;
logger: LoggerType;
}) => Promise<void>;
initializeRenderer: (options: {
configDir: string;