Skip to content

Commit 77e7e5d

Browse files
author
james.bennett
committed
update logging calls to use logger object
1 parent 659400c commit 77e7e5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flare_emu_radare.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _additionalAnalysis(self):
9292
if op['type'] == "imm" and ".dll_" in self.getName(op['value']):
9393
self.setName(candidate, "j_" + self.normalizeFuncName(self.getName(op['value'])))
9494
except Exception as e:
95-
logging.debug("Exception searching for trampoline functions, candidate %s: %s" % (self.eh.hexString(candidate), str(e)))
95+
self.eh.logger.debug("Exception searching for trampoline functions, candidate %s: %s" % (self.eh.hexString(candidate), str(e)))
9696

9797

9898
def _getFileNameFromPath(self, path):
@@ -165,7 +165,7 @@ def _getFuncInfo(self, addr):
165165
self.cache['afi'][addr] = self.r.cmdj("afij %d" % addr)[0]
166166
return self.cache['afi'][addr]
167167
except Exception as e:
168-
logging.debug("exception finding function info for %s: %s"
168+
self.eh.logger.debug("exception finding function info for %s: %s"
169169
% (self.eh.hexString(addr), str(e)))
170170
self.cache['afi'][addr] = None
171171
return None
@@ -421,7 +421,7 @@ def getNameAddr(self, name):
421421
if name[:2] == "0x":
422422
return int(name, 16)
423423
else:
424-
logging.debug("error in getNameAddr")
424+
self.eh.logger.debug("error in getNameAddr")
425425
return None
426426

427427

0 commit comments

Comments
 (0)