Coder Social home page Coder Social logo

Comments (5)

brettwooldridge avatar brettwooldridge commented on July 30, 2024

You can suppress these if you want. But you might not get these with the latest version (1.3.8), because the isConnectionAlive() test was allowing some dead connection through, when they should have been terminated before returning them to the user. But you might also want to make sure your maxLifetime in the pool is set to something slightly shorter than the idle timeout configured in your database.

from hikaricp.

ams2990 avatar ams2990 commented on July 30, 2024

How do I suppress the warning messages? I didn't see a configuration setting.

from hikaricp.

brettwooldridge avatar brettwooldridge commented on July 30, 2024

You would do it through your logging framework. For example, in log4j (property file):

log4j.logger.com.zaxxer.hikari.proxy=ERROR

that will suppress logs that are less than ERROR (eg. WARN, INFO, DEBUG) for the classes in package com.zaxxer.hikari.proxy. Most other logging frameworks (java.util.logging) have similar configuration options.

from hikaricp.

ams2990 avatar ams2990 commented on July 30, 2024

Is a dead connection the only warning HikariCP will throw?

from hikaricp.

brettwooldridge avatar brettwooldridge commented on July 30, 2024

The only other one is if you are using the leak detection feature. So, if you want to specifically target that message as much as possible, use:

log4j.logger.com.zaxxer.hikari.proxy.ConnectionProxy=ERROR

The leak detection is logged from another class, so would not be suppressed by that configuration.

from hikaricp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.