Added log

This commit is contained in:
Thomas FORGIONE 2015-08-04 23:08:50 +02:00
parent 374421780a
commit 5f40dea529
1 changed files with 4 additions and 0 deletions

View File

@ -766,6 +766,10 @@ DBReq.UserNameChecker = function(name, finishAction) {
this.finishAction = finishAction; this.finishAction = finishAction;
var self = this; var self = this;
pg.connect(pgc.url, function(err, client, release) { pg.connect(pgc.url, function(err, client, release) {
if (err) {
Log.dberror(err + ' in UserNameChcker connection');
return;
}
self.client = client; self.client = client;
self.release = release; self.release = release;
self.execute(); self.execute();