More env settings to tune down log noise
This commit is contained in:
parent
4fa95a928b
commit
20177860e0
@ -166,10 +166,11 @@ async function patchUserSettings(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
if ((process.env.LOG_PROTO_UPDATES || process.env.LOG_PROTO_SETTINGS_UPDATES) && process.env.LOG_PROTO_SETTINGS_UPDATES !== "false")
|
||||||
`Updating user settings for user ${userId} with atomic=${atomic}:`,
|
console.log(
|
||||||
updatedSettings,
|
`Updating user settings for user ${userId} with atomic=${atomic}:`,
|
||||||
);
|
updatedSettings,
|
||||||
|
);
|
||||||
|
|
||||||
if (!atomic) {
|
if (!atomic) {
|
||||||
settings = PreloadedUserSettings.fromJson(
|
settings = PreloadedUserSettings.fromJson(
|
||||||
|
|||||||
@ -168,10 +168,11 @@ async function patchUserSettings(
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(
|
if ((process.env.LOG_PROTO_UPDATES || process.env.LOG_PROTO_FRECENCY_UPDATES) && process.env.LOG_PROTO_FRECENCY_UPDATES !== "false")
|
||||||
`Updating frecency settings for user ${userId} with atomic=${atomic}:`,
|
console.log(
|
||||||
updatedSettings,
|
`Updating frecency settings for user ${userId} with atomic=${atomic}:`,
|
||||||
);
|
updatedSettings,
|
||||||
|
);
|
||||||
|
|
||||||
if (!atomic) {
|
if (!atomic) {
|
||||||
settings = FrecencyUserSettings.fromJson(
|
settings = FrecencyUserSettings.fromJson(
|
||||||
|
|||||||
@ -704,5 +704,5 @@ export async function onIdentify(this: WebSocket, data: Payload) {
|
|||||||
|
|
||||||
const setupListenerTime = Date.now();
|
const setupListenerTime = Date.now();
|
||||||
|
|
||||||
console.log(`[Gateway] IDENTIFY ${this.user_id} in ${totalSw.elapsed().totalMilliseconds}ms`, JSON.stringify(d._trace, null, 2));
|
console.log(`[Gateway] IDENTIFY ${this.user_id} in ${totalSw.elapsed().totalMilliseconds}ms`, process.env.LOG_GATEWAY_TRACES ? JSON.stringify(d._trace, null, 2) : "");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user