Database extension logging cleanup

This commit is contained in:
Antonin Delpeuch 2018-12-09 11:15:04 +09:00
parent db3a878c78
commit 7ab00366fc
2 changed files with 6 additions and 9 deletions

View File

@ -48,22 +48,20 @@ refineServlet = Packages.com.google.refine.RefineServlet;
*/
function registerCommands() {
logger.info("Registering Database Extension Commands......");
logger.trace("Registering Database Extension Commands......");
var RS = Packages.com.google.refine.RefineServlet;
RS.registerCommand(module, "test-connect", Packages.com.google.refine.extension.database.cmd.TestConnectCommand());
RS.registerCommand(module, "connect", Packages.com.google.refine.extension.database.cmd.ConnectCommand());
RS.registerCommand(module, "saved-connection", Packages.com.google.refine.extension.database.cmd.SavedConnectionCommand());
RS.registerCommand(module, "execute-query", Packages.com.google.refine.extension.database.cmd.ExecuteQueryCommand());
RS.registerCommand(module, "test-query", Packages.com.google.refine.extension.database.cmd.TestQueryCommand());
logger.info("Database Extension Command Registeration done!!");
logger.trace("Database Extension Command Registeration done!!");
}
function registerOperations() {
logger.info("Database Operations Registered successfully...");
}
function registerFunctions() {
logger.info("Database Functions Registered successfully...");
}
@ -72,8 +70,8 @@ function registerFunctions() {
*/
function init() {
logger.info("Initializing OpenRefine Database...");
logger.info("Database Extension Mount point " + module.getMountPoint());
logger.trace("Initializing OpenRefine Database Extension...");
logger.trace("Database Extension Mount point " + module.getMountPoint());
registerCommands();
registerOperations();
@ -134,8 +132,7 @@ function process(path, request, response) {
var method = request.getMethod();
logger.info('receiving request for ' + path);
logger.info('receiving method for ' + method);
logger.trace('receiving request for ' + path);
if (path == "/" || path == "") {
var context = {};

View File

@ -66,7 +66,7 @@ public class DatabaseModuleImpl extends ButterflyModuleImpl {
// Set the singleton.
instance = this;
logger.info("*** Database Extension Module Initialization Completed!!***");
logger.trace("Database Extension module initialization completed");
}
public static String getImportCreateBatchSize() {