Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 398942c

Browse files
committed
additional logging
1 parent 6666a43 commit 398942c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

initializers/dataAccess.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ exports.dataAccess = function (api, next) {
178178
var error, dbServerPrefix = api.config.tcConfig.databaseMapping[databaseName],
179179
user, password, hostname, server, port, settings;
180180
error = helper.checkDefined(dbServerPrefix, "database server prefix");
181+
182+
api.log('Creating a new db connection at dataAccess','debug');
181183
if (error) {
184+
api.log('Error : ' + error, 'error');
182185
throw error;
183186
}
184187

initializers/transaction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var handleConnectionFailure = function (api, connection, actionTemplate, error,
1818
var callback;
1919
callback = function (err, result) {
2020
connection.dbConnectionMap[databaseName].disconnect();
21-
api.log("Connection is closed", "debug");
21+
api.log("Connection is closed for " + databaseName, "debug");
2222
if (err) {
2323
connection.error = err;
2424
next(connection, false);

0 commit comments

Comments
 (0)