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

Merging to release-5.6.0: [TT-13107] [release-5.6] remove verbose error log (#6531) #6552

Conversation

buger
Copy link
Member

@buger buger commented Sep 19, 2024

TT-13107 [release-5.6] remove verbose error log (#6531)

User description

https://tyktech.atlassian.net/browse/TT-13107


PR Type

Bug fix


Description

  • Removed a verbose error log message in RedisQuotaExceeded function
    when the quota is disabled (quota max <= 0).
  • This change simplifies the logging and avoids unnecessary error
    messages when the quota is intentionally set to be disabled.

Changes walkthrough 📝

Relevant files
Bug fix
session_manager.go
Remove verbose error logging for disabled quota                   

gateway/session_manager.go

  • Removed verbose error logging when quota is disabled.
  • Simplified the logic for handling quota limits.
  • +0/-1     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools
    and their descriptions

    Co-authored-by: Tit Petric tit@tyk.io

    ### **User description**
    https://tyktech.atlassian.net/browse/TT-13107
    
    
    ___
    
    ### **PR Type**
    Bug fix
    
    
    ___
    
    ### **Description**
    - Removed a verbose error log message in `RedisQuotaExceeded` function
    when the quota is disabled (quota max <= 0).
    - This change simplifies the logging and avoids unnecessary error
    messages when the quota is intentionally set to be disabled.
    
    
    ___
    
    
    
    ### **Changes walkthrough** 📝
    <table><thead><tr><th></th><th align="left">Relevant
    files</th></tr></thead><tbody><tr><td><strong>Bug
    fix</strong></td><td><table>
    <tr>
      <td>
        <details>
    <summary><strong>session_manager.go</strong><dd><code>Remove verbose
    error logging for disabled quota</code>&nbsp; &nbsp; &nbsp; &nbsp;
    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
    <hr>
    
    gateway/session_manager.go
    
    <li>Removed verbose error logging when quota is disabled.<br> <li>
    Simplified the logic for handling quota limits.<br>
    
    
    </details>
    
    
      </td>
    <td><a
    href="https://github.com/TykTechnologies/tyk/pull/6531/files#diff-e6b40a285464cd86736e970c4c0b320b44c75b18b363d38c200e9a9d36cdabb6">+0/-1</a>&nbsp;
    &nbsp; &nbsp; </td>
    
    </tr>                    
    </table></td></tr></tr></tbody></table>
    
    ___
    
    > 💡 **PR-Agent usage**:
    >Comment `/help` on the PR to get a list of all available PR-Agent tools
    and their descriptions
    
    Co-authored-by: Tit Petric <tit@tyk.io>
    (cherry picked from commit 0324505)
    @buger buger enabled auto-merge (squash) September 19, 2024 10:53
    Copy link
    Contributor

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No key issues to review

    Copy link
    Contributor

    github-actions bot commented Sep 19, 2024

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    Copy link
    Contributor

    API Changes

    no api changes detected

    @titpetric titpetric enabled auto-merge (squash) September 19, 2024 10:55
    Copy link

    sonarcloud bot commented Sep 19, 2024

    @lghiur
    Copy link
    Member

    lghiur commented Sep 19, 2024

    flaky test, will merge this as is

    @lghiur lghiur merged commit f8937f6 into release-5.6.0 Sep 19, 2024
    23 of 24 checks passed
    @lghiur lghiur deleted the merge/release-5.6.0/0324505b7c9e5b57f12851fdcdf7e3945f161648 branch September 19, 2024 12:00
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants