Skip to content

[Enhancement] reduce log spam from the batch-module #543

Closed

Description

@InteractiveNinja

Hello 👋

Firstly, thanks for maintaining this library.

I noticed that when I upgraded to >=v8.11.1, the logs are getting flooded with messages when I run the backend server locally.
I found out that the log statement is from bbottema/generic-object-pool#8, which is used in #529.

15:44:01.147 [pool-1-thread-2|org.bbottema.genericobjectpool.GenericObjectPool]                                                       DEBUG - 0 objects invalidated as per expiration policy!
15:44:01.157 [pool-1-thread-2|org.bbottema.genericobjectpool.GenericObjectPool]                                                       DEBUG - 0 objects invalidated as per expiration policy!
15:44:01.167 [pool-1-thread-2|org.bbottema.genericobjectpool.GenericObjectPool]                                                       DEBUG - 0 objects invalidated as per expiration policy!
15:44:01.177 [pool-1-thread-2|org.bbottema.genericobjectpool.GenericObjectPool]                                                       DEBUG - 0 objects invalidated as per expiration policy!
15:44:01.188 [pool-1-thread-2|org.bbottema.genericobjectpool.GenericObjectPool]                                                       DEBUG - 0 objects invalidated as per expiration policy!
15:44:01.198 [pool-1-thread-2|org.bbottema.genericobjectpool.GenericObjectPool]                                                       DEBUG - 0 objects invalidated as per expiration policy!

I don't think there's anything I need to change to stop the log statements without removing the logging for this library in my project.

I appreciate your time 👍

Activity

  1. bbottema commented on Sep 15, 2024

    @bbottema
    Owner

    Well, I think it's good to tweak it so it only logs if there are actual objects invalidated and also perhaps make it TRACE level. Having said that, wouldn't it make sense for you to set the debug level to INFO for org.bbottema.genericobjectpool?

  2. added 2 commits that reference this issue on Sep 15, 2024
  3. changed the title [-]Spammed debug statements "objects invalidated as per expiration policy!"[/-] [+][Enhancement] reduce log spam from the batch-module[/+] on Sep 15, 2024
  4. bbottema commented on Sep 15, 2024

    @bbottema
    Owner

    Released tweak in 8.11.3

  5. added this to the 8.11.3 milestone on Sep 16, 2024
  6. InteractiveNinja commented on Sep 18, 2024

    @InteractiveNinja
    Author

    Thank you kindly for the fast change 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions