Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 027b1ac

Browse files
authored
Fix wrong variable names (#5)
1 parent eada56c commit 027b1ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def validate_origin_github():
1818
invalid = False
1919
userAgent = request.headers.get("User-Agent")
2020
if not userAgent.startswith("GitHub-Hookshot"):
21-
app.logger.warning("User-Agent is {userAgent}")
21+
app.logger.warning(f"User-Agent is {userAgent}")
2222
invalid = True
2323

2424
if request.headers.get("Content-Type") != "application/json":

src/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ def get_message(*args) -> str:
1010
""" Return variables as string logfmt """
1111
msg = list()
1212
for variable in args:
13-
var_name = f"{variable=}".split("=")[0]
13+
var_name = f"{variable=}".split("=")[1]
1414
msg.append(f'{var_name}="{variable}"')
1515
return " ".join(msg)

0 commit comments

Comments
 (0)