#35 Add details to debug log message

closed-fixed
None
5
2007-05-15
2007-03-22
Wojtek
No

When a connection is closed yet statements remain open, Proxool closes the statement automatically.

In debug log mode it also produces the message:
"Closing statment {stateID} automatically."

Can you add which connection id the statement belonged to? Something like:

"Closing statment {stateID} automatically for connection {connID}."

It would help in tracking down where a connection is closed, yet the statement was left open.

And maybe add a ProxoolFacade method where we could obtain the Connection a Statement belongs to:

public static Connection getConnection(Statement statement);

Thanks!

Discussion

  • Bill Horsman

    Bill Horsman - 2007-05-15
    • assigned_to: nobody --> billhorsman
    • status: open --> closed-fixed
     
  • Bill Horsman

    Bill Horsman - 2007-05-15

    Logged In: YES
    user_id=91747
    Originator: NO

    Good idea. I've just committed a fix which now logs "Closing statement {stateID} (belonging to connection ID) automatically". You can already get the connection a statement belongs to using statement.getConnection(). Thanks (for the suggestion and the patience). Bill

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks