Install Trace collector agent - seedlinux - Torrent indexing tool opensource torrents with share ratio's etc.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 89800db8e4d8275f42598eb0de3447ba1e94a2d3
(DIR) parent 1fe1f2702665354161e8faebdaa8acc5083075aa
(HTM) Author: Jay Scott <jay@jayscott.co.uk>
Date: Thu, 6 Jul 2017 22:07:20 +0100
Install Trace collector agent
Diffstat:
M app.js | 4 +++-
M package.json | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/app.js b/app.js
@@ -1,6 +1,8 @@
'use strict';
-
+if(process.env.NODE_ENV === 'production') {
+ require('@risingstack/trace');
+}
const express = require('express');
const path = require('path');
(DIR) diff --git a/package.json b/package.json
@@ -9,6 +9,7 @@
"start": "DEBUG=seedlinux:* node ./bin/www"
},
"dependencies": {
+ "@risingstack/trace": "^3.14.0",
"async": "^2.5.0",
"body-parser": "^1.17.2",
"compression": "^1.6.2",