Commit dcb25139480bc3fc66325646e608426fa5bbcd3b
1 parent
2853a670
Exists in
master
update package
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
package.json
| @@ -7,8 +7,8 @@ | @@ -7,8 +7,8 @@ | ||
| 7 | "test": "mocha unitTest", | 7 | "test": "mocha unitTest", |
| 8 | "start": "npm run test && node app.js", | 8 | "start": "npm run test && node app.js", |
| 9 | "gentest": "mocha unitTest && NODE_ENV=gentest node app.js", | 9 | "gentest": "mocha unitTest && NODE_ENV=gentest node app.js", |
| 10 | - "pullpm2": "git pull && npm install && pm2 stop hospital && pm2 start node app.js --name=hospital ", | ||
| 11 | - "pull": "git pull && npm install && pm2 stop hospital && npm run start " | 10 | + "pullpm2": "git stash && git pull && npm install && pm2 stop hospital && pm2 start node app.js --name=hospital ", |
| 11 | + "pull": "git stash && git pull && npm install && pm2 stop hospital && npm run start " | ||
| 12 | }, | 12 | }, |
| 13 | "author": "Source Code", | 13 | "author": "Source Code", |
| 14 | "license": "ISC", | 14 | "license": "ISC", |
utils/commonlog.js
| @@ -390,7 +390,7 @@ log.error = function (..._log) { | @@ -390,7 +390,7 @@ log.error = function (..._log) { | ||
| 390 | } | 390 | } |
| 391 | 391 | ||
| 392 | log.detail = function (detailLog) { | 392 | log.detail = function (detailLog) { |
| 393 | - write('dtl', JSON.stringify(detailLog)); | 393 | + write('dtl', detailLog); |
| 394 | } | 394 | } |
| 395 | 395 | ||
| 396 | 396 |