Skip to content

chore(logging): quiet the plugin's startup output - #193

Open
r0ny123 wants to merge 2 commits into
RevEngAI:mainfrom
r0ny123:chore/quiet-plugin-logging
Open

r0ny123 wants to merge 2 commits into
RevEngAI:mainfrom
r0ny123:chore/quiet-plugin-logging

Conversation

@r0ny123

@r0ny123 r0ny123 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Loading the plugin spams IDA's output window. Every line gets two timestamps (IDA's and loguru's) plus a full module path, and a few [REAI] debug messages print no matter what the log level is.

This trims it down:

  • INFO lines print as [RevEng.AI] message. Warnings and errors add the level. Module and line number only show at DEBUG.
  • configure_logging() now runs before the other plugin imports. Before, import-time debug lines (like the Qt version one) went through loguru's default DEBUG handler and showed up anyway.
  • The [REAI] ida_kernwin.msg lines in the entry point are plain debug logs now.
  • "User authenticated successfully" and "Hook registered" moved to debug.
  • Dropped the RevEng.AI: prefix from log messages since the format adds it already.

REAI_DEBUG=1 or REAI_LOG_LEVEL=DEBUG still brings everything back.

I checked the output format with loguru directly but haven't run the test suite (needs idalib) or tried it inside IDA.

IDA's output window already timestamps every line, so loguru's own
timestamp and module path just doubled the noise. Use a compact
"[RevEng.AI] message" format at INFO, add the level for warnings and
errors, and keep module:function:line for DEBUG only.

configure_logging() now runs before the other plugin imports, so
import-time debug lines (e.g. the Qt version) respect the log level
instead of going through loguru's default DEBUG handler.

The [REAI] ida_kernwin.msg diagnostics in the entry point are now
debug logs, the "authenticated" and "hook registered" messages drop to
debug, and the redundant "RevEng.AI: " prefix is gone from log messages.
@r0ny123
r0ny123 requested a review from a team as a code owner November 23, 2026 18:25
The manifest still pinned revengai==4.75.0 while pyproject.toml and uv.lock require 4.77.1, so the manifest dependency check in the test suite failed. Regenerated with scripts/emit_plugin_deps.py.
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.

1 participant