Write a deprecation warning when handling SIGUSR1 (#71)

This commit is contained in:
Sandro Santilli 2013-03-18 18:14:18 +01:00
parent d95ac85b17
commit 4e7f92c60d

1
app.js
View File

@ -48,6 +48,7 @@ ws.on('listening', function() {
// DEPRECATED, use SIGUSR2 // DEPRECATED, use SIGUSR2
process.on('SIGUSR1', function() { process.on('SIGUSR1', function() {
console.log('WARNING: handling of SIGUSR1 by Windshaft-CartoDB is deprecated, please send SIGUSR2 instead');
ws.dumpCacheStats(); ws.dumpCacheStats();
}); });