Commit d3271973 authored by deuce's avatar deuce
Browse files

Add -d and -r options to control debug and debugRX respectively... no need

to spam the log unless you're working on the script itself.
parent 2c7b0ea0
...@@ -13,8 +13,8 @@ load("822header.js"); ...@@ -13,8 +13,8 @@ load("822header.js");
load("mime.js"); load("mime.js");
var sepchar="|"; var sepchar="|";
var debug=true; var debug=false;
var debugRX=true; var debugRX=false;
// Global variables // Global variables
const UnAuthenticated=0; const UnAuthenticated=0;
...@@ -2155,6 +2155,10 @@ function read_cfg(sub, lck) ...@@ -2155,6 +2155,10 @@ function read_cfg(sub, lck)
js.on_exit("exit_func()"); js.on_exit("exit_func()");
client.socket.send("* OK Give 'er\r\n"); client.socket.send("* OK Give 'er\r\n");
var waited=0; var waited=0;
if (argv.indexOf('-d') >= 0)
debug = true;
if (argc.indexOf('-r') >= 0)
debugRX = true;
while(1) { while(1) {
line=client.socket.recvline(10240, 1); line=client.socket.recvline(10240, 1);
if(line != null && line != '') { if(line != null && line != '') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment