Less logging of every single WS message + use logger in Meilisearch

This commit is contained in:
PrivateGER 2023-05-31 12:08:21 +02:00
parent 2619c141ab
commit 23f551884f
2 changed files with 1 additions and 2 deletions

View file

@ -258,7 +258,7 @@ export default hasConfig
primaryKey: "id",
})
.then(() =>
console.log(`sent ${indexingBatch.length} posts for indexing`),
logger.info(`sent ${indexingBatch.length} posts for indexing`),
);
},
serverStats: async () => {

View file

@ -394,7 +394,6 @@ export default class Connection {
*
*/
public sendMessageToWs(type: string, payload: any) {
console.log(payload, this.isMastodonCompatible);
if (this.isMastodonCompatible) {
if (payload.type === "note") {
this.wsConnection.send(