tlsd 2.9.1 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scaffold/static/local.sass +1 -0
- package/scaffold/static/local.sass.css +1 -0
- package/tlsd.js +16 -3
package/package.json
CHANGED
package/tlsd.js
CHANGED
|
@@ -43,6 +43,19 @@ const next_seq = function() {
|
|
|
43
43
|
// Tries to load the rpc handler module from root and if successful, passes the msg to it
|
|
44
44
|
const rpc_handler = function( root, msg, xport, _okay, _fail ) {
|
|
45
45
|
|
|
46
|
+
let ll = toInt( msg.log_level );
|
|
47
|
+
if( ll > 0 ) {
|
|
48
|
+
D( "Setting log level to "+ll );
|
|
49
|
+
log_level = ll;
|
|
50
|
+
L( log_level );
|
|
51
|
+
if( ! dev_mode ) {
|
|
52
|
+
setTimeout( () => {
|
|
53
|
+
ll = process.env.VERBOSITY;
|
|
54
|
+
D( "Reverting log level to "+ll );
|
|
55
|
+
}, 15 * 1000 );
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
46
59
|
V( "RPC " + o2j( msg ).abbr( 70 ) );
|
|
47
60
|
D( "----------->>> "+xport+" "+o2j( msg, null, 2 ) );
|
|
48
61
|
|
|
@@ -306,8 +319,8 @@ const ws_attach = function( httpServer, msg_handler ) {
|
|
|
306
319
|
|
|
307
320
|
|
|
308
321
|
|
|
322
|
+
/*
|
|
309
323
|
const build_sass = function( path ) {
|
|
310
|
-
//D( "_________ auto_build sass " + path );
|
|
311
324
|
const sass = require( "sass" );
|
|
312
325
|
const result = sass.compile( path );
|
|
313
326
|
fs.writeFileSync( path + ".css", result.css, "utf8" );
|
|
@@ -321,7 +334,6 @@ const auto_builders = [
|
|
|
321
334
|
const auto_build = function( paths ) {
|
|
322
335
|
|
|
323
336
|
for( let path of paths ) {
|
|
324
|
-
// D( "___ path? " + path );
|
|
325
337
|
for( const bldr of auto_builders ) {
|
|
326
338
|
if( bldr[ 0 ].test( path ) ) {
|
|
327
339
|
bldr[ 1 ]( path );
|
|
@@ -381,6 +393,7 @@ const enable_fs_watch = function( root ) {
|
|
|
381
393
|
} );
|
|
382
394
|
|
|
383
395
|
};
|
|
396
|
+
*/
|
|
384
397
|
|
|
385
398
|
|
|
386
399
|
// -----------------------
|
|
@@ -455,7 +468,7 @@ if( argv.length == 5 ) {
|
|
|
455
468
|
} );
|
|
456
469
|
|
|
457
470
|
// enable the file system watch, which handles hot-reload and auto-build
|
|
458
|
-
enable_fs_watch( SITE_ROOT );
|
|
471
|
+
// enable_fs_watch( SITE_ROOT );
|
|
459
472
|
|
|
460
473
|
I( "Listening on " + PORT + " & serving from " + SITE_ROOT );
|
|
461
474
|
|