Change tail method

This commit is contained in:
Akkadius 2017-09-14 05:06:47 -05:00
parent 359c571d24
commit 744cd925b3

4
app.js
View File

@ -109,7 +109,7 @@ fs.readFile(glass_config.leases_file, 'utf8', function (err,data) {
/** /**
* Leases File Listener * Leases File Listener
*/ */
var tail_module = require('always-tail'); var tail_module = require('always-tail2');
tail = new tail_module( tail = new tail_module(
glass_config.leases_file, glass_config.leases_file,
"\n", "\n",
@ -253,7 +253,7 @@ wss.on('connection', function connection(ws) {
if (!listening_to_log_file) { if (!listening_to_log_file) {
/* Watch log file for new information */ /* Watch log file for new information */
var tail_module = require('always-tail'); var tail_module = require('always-tail2');
listening_to_log_file = 1; listening_to_log_file = 1;
} }