Skip to content

Commit ea710f7

Browse files
committed
chore: log if sentry is installed
1 parent 0eccb8f commit ea710f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

run.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
import pathlib
44
from typing import Generator, Optional, Tuple
55

6+
import structlog
7+
68
from wafp.__main__ import main as run
79
from wafp.fuzzers import loader as fuzzers_loader
810
from wafp.targets import loader as targets_loader
911

12+
logger = structlog.get_logger()
13+
1014
COMBINATIONS = {
1115
"age_of_empires_2_api:Default": {
1216
"fuzzers": [
@@ -221,6 +225,10 @@ def main() -> None:
221225
for fuzzer in data.get("fuzzers", ()):
222226
if args.fuzzer and not is_match(fuzzer, args.fuzzer):
223227
continue
228+
if sentry_dsn:
229+
logger.info("Sentry is installed")
230+
else:
231+
logger.warn("Sentry is not installed")
224232
for iteration in range(1, args.iterations + 1):
225233
run_single(fuzzer, target, iteration, output_dir, sentry_dsn)
226234

0 commit comments

Comments
 (0)