Skip to content

Commit ef54800

Browse files
committed
fix: Supress messy debug logging when recovering strings from code
1 parent d9dcb6f commit ef54800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

binja_plugin/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def run(self):
305305
code_refs = self.bv.get_code_refs(data_var.address)
306306
for code_ref in code_refs:
307307
if code_ref.mlil is not None:
308-
logger.log_info(f"{code_ref.address:#x}: {code_ref.mlil.instr}")
308+
logger.log_debug(f"{code_ref.address:#x}: {code_ref.mlil.instr}")
309309

310310
# Obtain more information about the instruction at the cross reference.
311311
# Is the pointer being read, or written to?
@@ -321,7 +321,7 @@ def run(self):
321321
lambda instr: instr.instr_index > code_ref.mlil.instr_index,
322322
code_ref.mlil.il_basic_block,
323323
):
324-
logger.log_info(
324+
logger.log_debug(
325325
f"instruction: {instruction.instr_index}, {instruction}"
326326
)
327327
for detailed_operand in instruction.detailed_operands:

0 commit comments

Comments
 (0)