Skip to content

Commit 49865c8

Browse files
committed
stop printing the banner in case of export
1 parent 825e8df commit 49865c8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

httpdbg/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.1.3"
1+
__version__ = "2.1.4"
22

33
__all__ = ["export_html", "httprecord", "HTTPRecords"]
44

httpdbg/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ def pyhttpdbg(
2828

2929
set_env_for_logging(params.log_level, params.log)
3030

31-
url = f"http://{params.host}:{params.port}/{'?hi=on' if params.console else ''}"
32-
33-
if not params.no_banner:
34-
print_msg(f" httpdbg - HTTP(S) requests available at {url}")
35-
3631
sys.path.insert(0, "") # to mimic the default python command behavior
3732

3833
def run_recorder(
@@ -58,6 +53,11 @@ def run_recorder(
5853
export_html(records, Path(params.export_html))
5954

6055
else:
56+
url = f"http://{params.host}:{params.port}/{'?hi=on' if params.console else ''}"
57+
58+
if not params.no_banner:
59+
print_msg(f" httpdbg - HTTP(S) requests available at {url}")
60+
6161
with httpdbg_srv(params.host, params.port) as records:
6262

6363
run_recorder(records, params.initiator, not params.only_client, test_mode)

0 commit comments

Comments
 (0)