Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix logging reason of auth errors #5048

Merged
merged 2 commits into from
Mar 27, 2023
Merged

Conversation

Martchus
Copy link
Contributor

The $reason variable needs to be set before printing the log message. Otherwise only the generic default will be printed.

@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Merging #5048 (9792927) into master (c715f72) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5048   +/-   ##
=======================================
  Coverage   98.24%   98.24%           
=======================================
  Files         383      383           
  Lines       35982    35985    +3     
=======================================
+ Hits        35350    35355    +5     
+ Misses        632      630    -2     
Impacted Files Coverage Δ
lib/OpenQA/Shared/Controller/Auth.pm 100.00% <100.00%> (+1.85%) ⬆️
t/api/03-auth.t 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

The `$reason` variable needs to be set before printing the log
message. Otherwise only the generic default will be printed.
Copy link
Member

@kalikiana kalikiana left a comment

Choose a reason for hiding this comment

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

Good catch!

@kalikiana kalikiana merged commit 5ee8212 into os-autoinst:master Mar 27, 2023
@Martchus Martchus deleted the auth-logging branch March 27, 2023 20:39
os-autoinst-bot pushed a commit to os-autoinst-bot/openQA that referenced this pull request Mar 28, 2023
commit 5ee8212
Merge: fcd0314 9792927
Author:     Cris Dywan <cdywan@suse.de>
AuthorDate: Mon Mar 27 19:26:17 2023 +0200
Commit:     GitHub <noreply@github.com>
CommitDate: Mon Mar 27 19:26:17 2023 +0200

    Merge pull request os-autoinst#5048 from Martchus/auth-logging

    Fix logging reason of auth errors
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants