Skip to content

Commit

Permalink
fixing error task parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Sep 12, 2015
1 parent 3759d8a commit f73888d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ var monitor = {
} else {
if (e.ctx && (monitor.detailed || detailed)) {
// transaction details are to be reported;
var sTag = getTagName(e);
var sTag = getTagName(e), prefix = e.ctx.isTX ? "tx" : "task";
if (sTag) {
print(event, timeGap + cct.paramTitle("tx(") + cct.value(sTag) + cct.paramTitle("): ") + cct.value(q), true);
print(event, timeGap + cct.paramTitle(prefix + "(") + cct.value(sTag) + cct.paramTitle("): ") + cct.value(q), true);
} else {
print(event, timeGap + cct.paramTitle("tx: ") + cct.value(q), true);
print(event, timeGap + cct.paramTitle(prefix + ": ") + cct.value(q), true);
}
} else {
print(event, timeGap + cct.paramTitle("query: ") + cct.value(q), true);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pg-monitor",
"version": "0.3.0",
"version": "0.3.1",
"description": "Event monitor for pg-promise.",
"main": "lib/index.js",
"homepage": "https://github.com/vitaly-t/pg-monitor",
Expand Down

0 comments on commit f73888d

Please sign in to comment.