From 33bf42ea26110eb2d772b8ccafcb7d17c28786e7 Mon Sep 17 00:00:00 2001 From: Stanislas Polu Date: Thu, 30 Nov 2023 10:04:15 +0100 Subject: [PATCH] clean-up logs (#2717) --- .../src/connectors/slack/temporal/activities.ts | 14 -------------- core/src/data_sources/data_source.rs | 16 ---------------- 2 files changed, 30 deletions(-) diff --git a/connectors/src/connectors/slack/temporal/activities.ts b/connectors/src/connectors/slack/temporal/activities.ts index 8d62fcfe906d..88abeac709e9 100644 --- a/connectors/src/connectors/slack/temporal/activities.ts +++ b/connectors/src/connectors/slack/temporal/activities.ts @@ -568,23 +568,9 @@ export async function syncThread( const documentId = `slack-${channelId}-thread-${threadTs}`; - if (documentId === "slack-C01LV3NED08-thread-1701302546.665219") { - console.log( - "slack-C01LV3NED08-thread-1701302546.665219 allMessages-unfiltered", - allMessages - ); - } - const botUserId = await getBotUserIdMemoized(slackClient); allMessages = allMessages.filter((m) => m.user !== botUserId); - if (documentId === "slack-C01LV3NED08-thread-1701302546.665219") { - console.log( - "slack-C01LV3NED08-thread-1701302546.665219 allMessages-filtered", - allMessages - ); - } - const text = await formatMessagesForUpsert( channelId, allMessages, diff --git a/core/src/data_sources/data_source.rs b/core/src/data_sources/data_source.rs index 25b184518026..efea14d0243a 100644 --- a/core/src/data_sources/data_source.rs +++ b/core/src/data_sources/data_source.rs @@ -799,13 +799,6 @@ impl DataSource { hash: String, } - if document_id == "slack-C01LV3NED08-thread-1701302546.665219" { - utils::info(&format!( - "Content slack-C01LV3NED08-thread-1701302546.665219: {:?}", - text, - )); - } - // Split text in chunks. let splits = splitter(self.config.splitter_id) .split( @@ -817,15 +810,6 @@ impl DataSource { ) .await?; - if document_id == "slack-C01LV3NED08-thread-1701302546.665219" { - splits.iter().for_each(|s| { - utils::info(&format!( - "Splits slack-C01LV3NED08-thread-1701302546.665219: `{}`", - s - )); - }) - } - let splits_with_hash: Vec = splits .iter() .map(|s| {