Skip to content

Commit e751684

Browse files
committed
Update to print info on exit term signals handled
1 parent 0bcd835 commit e751684

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,7 @@ process.on('uncaughtException', function (err) {
648648

649649
// install exit handler
650650
function handleTermSignals () {
651+
logger.info('hackmd has been killed by signal, try to exit gracefully...')
651652
config.maintenance = true
652653
// disconnect all socket.io clients
653654
Object.keys(io.sockets.sockets).forEach(function (key) {

0 commit comments

Comments
 (0)