Skip to content

Commit c223e13

Browse files
bcallerBen Caller
authored andcommitted
More logging
1 parent c7b244d commit c223e13

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pyt/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ def main(command_line_args=sys.argv[1:]): # noqa: C901
125125
)
126126

127127
initialize_constraint_table(cfg_list)
128+
log.info("Analysing")
128129
analyse(cfg_list)
130+
log.info("Finding vulnerabilities")
129131
vulnerabilities = find_vulnerabilities(
130132
cfg_list,
131133
args.blackbox_mapping_file,

pyt/web_frameworks/framework_adaptor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""A generic framework adaptor that leaves route criteria to the caller."""
22

33
import ast
4+
import logging
45

56
from ..cfg import make_cfg
67
from ..core.ast_helper import Arguments
@@ -10,6 +11,8 @@
1011
TaintedNode
1112
)
1213

14+
log = logging.getLogger(__name__)
15+
1316

1417
class FrameworkAdaptor():
1518
"""An engine that uses the template pattern to find all
@@ -31,6 +34,7 @@ def __init__(
3134

3235
def get_func_cfg_with_tainted_args(self, definition):
3336
"""Build a function cfg and return it, with all arguments tainted."""
37+
log.debug("Getting CFG for %s", definition.name)
3438
func_cfg = make_cfg(
3539
definition.node,
3640
self.project_modules,

0 commit comments

Comments
 (0)