Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(routes): Add a missing %s for converting an argument passed to a logging statement (fixes #45). #44

Merged
merged 9 commits into from
Jan 8, 2025
2 changes: 1 addition & 1 deletion application/routes/vnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def change_vncpasswd():

vnc, reason = create_connection(session_id, ConnectionType.VNC)
if reason != '':
logger.error("create_connection() failed with status=", reason)
logger.error("create_connection() failed with status=%s", reason)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

Use consistent terminology in log messages.

Great job adding the missing %s to properly include the reason in the log statement. However, consider updating the message text to also refer to "reason" rather than "status," ensuring clarity for future maintainers.

abort(403, description=reason)

passwd = request.json.get('passwd')
Expand Down
Loading