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