Enhancement: inject logger object into backend

* allows backends to use/consume the configured logger from statsd
 * this is optional, backends who don't use it yet, should continue to work
 * related: librato/statsd-librato-backend#17
This commit is contained in:
till 2013-11-28 18:01:16 +01:00
Родитель c2cc368753
Коммит 5ddd89f5a1
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -39,7 +39,7 @@ function loadBackend(config, name) {
l.log("Loading backend: " + name, 'DEBUG');
}
var ret = backendmod.init(startup_time, config, backendEvents);
var ret = backendmod.init(startup_time, config, backendEvents, l);
if (!ret) {
l.log("Failed to load backend: " + name);
process.exit(1);