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

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

Merged

Conversation

titpetric
Copy link
Contributor

@titpetric titpetric commented Sep 17, 2024

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

    @titpetric titpetric changed the base branch from master to release-5.6 September 17, 2024 10:59
    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

    API Changes

    no api changes detected

    Copy link
    Contributor

    github-actions bot commented Sep 17, 2024

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    Copy link

    sonarcloud bot commented Sep 17, 2024

    @titpetric titpetric merged commit 0324505 into release-5.6 Sep 18, 2024
    27 checks passed
    @titpetric titpetric deleted the fix/tt-13107/release-5.6-remove-verbose-error-log branch September 18, 2024 10:42
    @titpetric
    Copy link
    Contributor Author

    /release to release-5.6.0

    Copy link

    tykbot bot commented Sep 19, 2024

    Working on it! Note that it can take a few minutes.

    tykbot bot pushed a commit that referenced this pull request Sep 19, 2024
    ### **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)
    Copy link

    tykbot bot commented Sep 19, 2024

    @titpetric Succesfully merged PR

    lghiur pushed a commit that referenced this pull request Sep 19, 2024
    …or log (#6531) (#6552)
    
    [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** 📝
    <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>
    
    [TT-13107]:
    https://tyktech.atlassian.net/browse/TT-13107?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
    
    Co-authored-by: Tit Petric <tit.petric@monotek.net>
    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.

    1 participant