mirror of
https://github.com/Akkadius/glass-isc-dhcp.git
synced 2025-07-29 16:45:48 +02:00
Change tail method
This commit is contained in:
parent
359c571d24
commit
744cd925b3
4
app.js
4
app.js
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user