mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
The patch does the following:
Allows you to set the loglevel at runtime by adding ?loglevel=X to the connection URL, where 1 = INFO and 2 = DEBUG. Automatically turns on logging by calling DriverManager.setPrintWriter(new PrintWriter(System.out)) if one is not already set. Adds a Driver.info() message that prints out the version number Adds member variables logDebug and logInfo that can be checked before making logging methods calls Adds a build number to the version number string. This build number will need to be manually incremented when we see fit. ---------------------------------------------------------------------- Modified Files: org/postgresql/Connection.java org/postgresql/Driver.java.in org/postgresql/fastpath/Fastpath.java org/postgresql/jdbc1/DatabaseMetaData.java org/postgresql/jdbc2/Connection.java org/postgresql/jdbc2/DatabaseMetaData.java org/postgresql/largeobject/LargeObjectManager.java org/postgresql/util/PSQLException.java org/postgresql/util/Serialize.java ----------------------------------------------------------------------
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.postgresql.fastpath;
|
||||
|
||||
import org.postgresql.Driver;
|
||||
import java.io.*;
|
||||
import java.lang.*;
|
||||
import java.net.*;
|
||||
@@ -44,7 +45,6 @@ public class Fastpath
|
||||
{
|
||||
this.conn = conn;
|
||||
this.stream = stream;
|
||||
//DriverManager.println("Fastpath initialised");
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -174,7 +174,7 @@ public class Fastpath
|
||||
*/
|
||||
public Object fastpath(String name, boolean resulttype, FastpathArg[] args) throws SQLException
|
||||
{
|
||||
//DriverManager.println("Fastpath: calling "+name);
|
||||
if (Driver.logDebug) Driver.debug("Fastpath: calling "+name);
|
||||
return fastpath(getID(name), resulttype, args);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user