Skip to content

Commit 957033a

Browse files
committed
ajustes
1 parent 62c74de commit 957033a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import makeWASocket, {
3333
WAMessageUpdate,
3434
WASocket,
3535
} from '@whiskeysockets/baileys';
36-
import MAIN_LOGGER from '@whiskeysockets/baileys/lib/Utils/logger';
3736
import axios from 'axios';
3837
import { exec, execSync } from 'child_process';
3938
import { arrayUnique, isBase64, isURL } from 'class-validator';
@@ -132,8 +131,6 @@ import { ChatwootService } from './chatwoot.service';
132131
//import { SocksProxyAgent } from './socks-proxy-agent';
133132
import { TypebotService } from './typebot.service';
134133

135-
const logger = MAIN_LOGGER.child({});
136-
137134
export class WAStartupService {
138135
constructor(
139136
private readonly configService: ConfigService,
@@ -1545,7 +1542,7 @@ export class WAStartupService {
15451542
'buffer',
15461543
{},
15471544
{
1548-
logger: logger,
1545+
logger: P({ level: 'error' }) as any,
15491546
reuploadRequest: this.client.updateMediaMessage,
15501547
},
15511548
);

0 commit comments

Comments
 (0)