Skip to content

Conversation

rkuo-danswer
Copy link
Contributor

Description

Fixes https://linear.app/danswer/issue/DAN-2013/improve-slack-bot-logging

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@rkuo-danswer rkuo-danswer marked this pull request as ready for review May 28, 2025 17:35
@rkuo-danswer rkuo-danswer requested a review from a team as a code owner May 28, 2025 17:35
Copy link

vercel bot commented May 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2025 5:37pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR enhances the Slack bot's logging and debugging capabilities, focusing on improved error tracing and code clarity without modifying core functionality.

  • Added explicit type annotations and renamed variables in /backend/onyx/onyxbot/slack/listener.py for better code clarity (e.g., all_tenants -> all_active_tenants)
  • Enhanced error logging in /backend/onyx/onyxbot/slack/utils.py with detailed messages for reaction operations
  • Added bot_name to socket client in /backend/onyx/onyxbot/slack/listener.py for improved request tracing
  • Reduced log verbosity in /backend/onyx/secondary_llm_flows/chunk_usefulness.py by removing redundant debug statements
  • Improved code organization in reaction handling by separating add/remove operations into distinct blocks

3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@rkuo-danswer rkuo-danswer enabled auto-merge May 28, 2025 18:30
@rkuo-danswer rkuo-danswer added this pull request to the merge queue May 28, 2025
Merged via the queue into main with commit 9f72826 May 28, 2025
11 checks passed
@rkuo-danswer rkuo-danswer deleted the bugfix/slack-bot-debugging branch May 28, 2025 19:41
ZhipengHe pushed a commit to ZhipengHe/onyx that referenced this pull request Jun 6, 2025
* adding some logging

* better var name

---------

Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* adding some logging

* better var name

---------

Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants