summaryrefslogtreecommitdiff
path: root/backend
authorMichael Krelin <hacker@klever.net>2013-11-27 17:11:49 (UTC)
committer Michael Krelin <hacker@klever.net>2013-11-27 17:11:49 (UTC)
commit6cd9e34b5b49473923190a6a70c436908c98505e (patch) (side-by-side diff)
treed6182625f7406f8b8facb71166c5e4a607dd2c65 /backend
parent0f1cc2ac41835ee8fa5dded1593fa95092b54bbe (diff)
downloadclipperz-6cd9e34b5b49473923190a6a70c436908c98505e.zip
clipperz-6cd9e34b5b49473923190a6a70c436908c98505e.tar.gz
clipperz-6cd9e34b5b49473923190a6a70c436908c98505e.tar.bz2
more tracelogging
Diffstat (limited to 'backend') (more/less context) (show whitespace changes)
-rw-r--r--backend/node/src/clipperz.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/node/src/clipperz.js b/backend/node/src/clipperz.js
index b8b4d3e..04b054a 100644
--- a/backend/node/src/clipperz.js
+++ b/backend/node/src/clipperz.js
@@ -73,12 +73,13 @@ var CLIPPERZ = module.exports = function(CONFIG) {
},
T: function(cb) {
PG.PG.connect(PG.url,function(e,C,D) {
if(e) return cb(e);
C.query('BEGIN',function(e){
if(e) return D(),cb(e);
+ LOGGER.trace('SQL: transaction begun');
cb(null,{
Q: function(q,a,cb) {
LOGGER.trace({query:q,args:a},'SQL: %s',q);
if(this.over) return cb(new Error('game over'));
if('function'===typeof a) cb=a,a=[];
var t0=new Date();