Skip to content

Commit

Permalink
clean-up logs (#2717)
Browse files Browse the repository at this point in the history
  • Loading branch information
spolu authored Nov 30, 2023
1 parent 7df2145 commit 33bf42e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
14 changes: 0 additions & 14 deletions connectors/src/connectors/slack/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
16 changes: 0 additions & 16 deletions core/src/data_sources/data_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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<ChunkInfo> = splits
.iter()
.map(|s| {
Expand Down

0 comments on commit 33bf42e

Please sign in to comment.