perf:WA 日志存到 logs 目录;删除不用的配置文件

dev/supplier-email-drawer
LiaoYijun 9 months ago
parent 12a3ac3589
commit 4200895ee2

@ -1,15 +0,0 @@
PORT=3032
API_VERSION=0
DB_USER='admin'
DB_HOST='202.103.68.93'
DB_PASSWORD='admin'
DB_DATABASE='whatsapp_individual'
DB_PORT=3306
NODE_ENV='development'
WEBHOOK_URL='https://p9axztuwd7x8a7.mycht.cn/whatsapp_server/wawebhook'
SERVER_DOMAIN='http://202.103.68.93:3031'
SERVER_NAME='aliyun1'

@ -1,8 +0,0 @@
PORT=<number>
API_VERSION=<number>
DB_USER=<string>
DB_HOST=<string>
DB_PASSWORD=<string>
DB_DATABASE=<string>
DB_PORT=<number>

@ -24,7 +24,7 @@ const createWhatsApp = async phone => {
const whatsAppNo = phone;
// 缓存 msgId-externalId过期时间为 5 分钟
const externalIdCache = new NodeCache({ stdTTL: 60*5 });
const logger = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` }, P.destination('./wa-logs-' + phone + '_' + channelId + '.txt'));
const logger = P({ timestamp: () => `,"time":"${new Date().toJSON()}"` }, P.destination('./logs/wa-logs-' + phone + '_' + channelId + '.txt'));
logger.level = 'trace';
const msgRetryCounterCache = new NodeCache();
const storeFilename = './baileys_auth_info/baileys_store_' + phone + '_' + channelId + '.json'

Loading…
Cancel
Save