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

Logger level interference #1572

Open
yan-hic opened this issue Sep 14, 2019 · 2 comments
Open

Logger level interference #1572

yan-hic opened this issue Sep 14, 2019 · 2 comments
Assignees

Comments

@yan-hic
Copy link

yan-hic commented Sep 14, 2019

I have enabled trace logging through the URL but the log file only shows connection entries:

FINE: Connecting with URL: jdbc:postgresql://sbxdb:5432/sbx?loggerLevel=TRACE&loggerFile=pgjdbc.log
Sep 14, 2019 12:39:31 PM org.postgresql.Driver connect
FINE: Connecting with URL: jdbc:postgresql://sbxdb:5432/sbx?loggerLevel=TRACE&loggerFile=pgjdbc.log
Sep 14, 2019 12:39:31 PM org.postgresql.Driver connect
FINE: Connecting with URL: jdbc:postgresql://sbxdb:5432/sbx?loggerLevel=TRACE&loggerFile=pgjdbc.log

I had hoped to see what metadata calls (+ args) a third-party app was doing.
pgDatabaseMetaData unfortunately does not log at all but I had expected some more logging from other modules to help debugging.

Could it be that the log level is shared and got reset by the app ? That shouldn't be - the level on the URL should apply across the board within pgjdbc.

Driver Version?
42.2.6

Java Version?
11.0.4

@davecramer
Copy link
Member

unlikely it was reset by the app. Much easier to trace in the server logs tho

@yan-hic
Copy link
Author

yan-hic commented Sep 14, 2019

the server shows the SQL only. Only pgdjbc can log what exactly was returned to the client i.e. resultset from the meta methods (columns, data types and values).

If logging is what it is, please consider a feature request to extend logging to pgDatabaseMetaData.

@davecramer davecramer self-assigned this Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants