mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
write analytics before exiting
This commit is contained in:
@@ -146,6 +146,10 @@ function shutdown(code) {
|
|||||||
},
|
},
|
||||||
function (next) {
|
function (next) {
|
||||||
winston.info('[app] Web server closed to connections.');
|
winston.info('[app] Web server closed to connections.');
|
||||||
|
require('./analytics').writeData(next);
|
||||||
|
},
|
||||||
|
function (next) {
|
||||||
|
winston.info('[app] Live analytics saved.');
|
||||||
require('./database').close(next);
|
require('./database').close(next);
|
||||||
},
|
},
|
||||||
], function (err) {
|
], function (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user