miolo 0.9.27 → 0.9.29
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/dist/cli/miolo.cli.iife.bundle.js +1 -1
- package/dist/cli/miolo.cli.iife.bundle.min.js +1 -1
- package/dist/cli/miolo.cli.iife.js +1 -1
- package/dist/cli/miolo.cli.iife.min.js +1 -1
- package/dist/cli/miolo.cli.min.mjs +1 -1
- package/dist/cli/miolo.cli.mjs +1 -1
- package/dist/cli/miolo.cli.umd.bundle.js +1 -1
- package/dist/cli/miolo.cli.umd.bundle.min.js +1 -1
- package/dist/cli/miolo.cli.umd.js +1 -1
- package/dist/cli/miolo.cli.umd.min.js +1 -1
- package/dist/cli-react/miolo.cli-react.iife.bundle.js +1 -1
- package/dist/cli-react/miolo.cli-react.iife.bundle.min.js +1 -1
- package/dist/cli-react/miolo.cli-react.iife.js +1 -1
- package/dist/cli-react/miolo.cli-react.iife.min.js +1 -1
- package/dist/cli-react/miolo.cli-react.min.mjs +1 -1
- package/dist/cli-react/miolo.cli-react.mjs +1 -1
- package/dist/cli-react/miolo.cli-react.umd.bundle.js +1 -1
- package/dist/cli-react/miolo.cli-react.umd.bundle.min.js +1 -1
- package/dist/cli-react/miolo.cli-react.umd.js +1 -1
- package/dist/cli-react/miolo.cli-react.umd.min.js +1 -1
- package/dist/server/miolo.server.cjs +92 -44
- package/dist/server/miolo.server.min.mjs +2 -2
- package/dist/server/miolo.server.mjs +89 -45
- package/dist/server/miolo.server.mjs.map +1 -1
- package/dist/server/miolo.server.node.mjs +93 -45
- package/package.json +1 -1
package/dist/cli/miolo.cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* miolo v0.9.
|
|
2
|
+
* miolo v0.9.29
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Donato Lorenzo <donato@afialapis.com>
|
|
5
5
|
*
|
|
@@ -18,16 +18,17 @@ var path = require('node:path');
|
|
|
18
18
|
var node_url = require('node:url');
|
|
19
19
|
var calustra = require('calustra');
|
|
20
20
|
var nodemailer = require('nodemailer');
|
|
21
|
+
var fs = require('node:fs');
|
|
21
22
|
var tinguir = require('tinguir');
|
|
22
23
|
var util = require('node:util');
|
|
23
24
|
var winston = require('winston');
|
|
24
25
|
require('winston-daily-rotate-file');
|
|
26
|
+
var intre = require('intre');
|
|
25
27
|
var koa_body_parser = require('koa-better-body');
|
|
26
28
|
var koa_convert = require('koa-convert');
|
|
27
29
|
var koa_compress = require('koa-compress');
|
|
28
30
|
var node_zlib = require('node:zlib');
|
|
29
31
|
var ratelimit = require('koa-ratelimit');
|
|
30
|
-
var fs = require('node:fs');
|
|
31
32
|
var https = require('node:https');
|
|
32
33
|
var koa_mount = require('koa-mount');
|
|
33
34
|
var koa_serve = require('koa-static');
|
|
@@ -593,15 +594,15 @@ var base_config = {
|
|
|
593
594
|
file: {
|
|
594
595
|
enabled: true,
|
|
595
596
|
level: 'silly',
|
|
596
|
-
filename: '/var/log/afialapis/miolo.%DATE%.log',
|
|
597
597
|
frequency: undefined,
|
|
598
598
|
datePattern: 'YYYY-MM-DD',
|
|
599
599
|
zippedArchive: true,
|
|
600
600
|
maxSize: '20m',
|
|
601
601
|
maxFiles: '10d',
|
|
602
|
-
|
|
602
|
+
filename: '/var/log/afialapis/%MIOLO%.%DATE%.log',
|
|
603
|
+
auditFile: '/var/log/afialapis/%MIOLO%.audit.json',
|
|
603
604
|
createSymlink: true,
|
|
604
|
-
symlinkName: '
|
|
605
|
+
symlinkName: '%MIOLO%.log'
|
|
605
606
|
},
|
|
606
607
|
mail: {
|
|
607
608
|
enabled: false,
|
|
@@ -931,7 +932,7 @@ var init_logger = function init_logger(config, emailer, prefix) {
|
|
|
931
932
|
warn: 'wrn',
|
|
932
933
|
error: 'err'
|
|
933
934
|
};
|
|
934
|
-
var myFormat =
|
|
935
|
+
var myFormat = function myFormat(info) {
|
|
935
936
|
var _config$format;
|
|
936
937
|
var lc = LEVEL_COLORS[info.level];
|
|
937
938
|
var tm = new Date(info.timestamp);
|
|
@@ -939,7 +940,7 @@ var init_logger = function init_logger(config, emailer, prefix) {
|
|
|
939
940
|
//const ts= tm.toString().substr(4, 20)
|
|
940
941
|
var log = "[" + prefix + "] " + lc(ts) + " " + lc(LEVEL_ABBRV[info.level]) + " " + info.message;
|
|
941
942
|
return info.stack ? log + "\n" + info.stack : log;
|
|
942
|
-
}
|
|
943
|
+
};
|
|
943
944
|
var _log_transports = [];
|
|
944
945
|
//
|
|
945
946
|
// Console transport
|
|
@@ -978,24 +979,64 @@ var init_logger = function init_logger(config, emailer, prefix) {
|
|
|
978
979
|
|
|
979
980
|
if ((config == null || (_config$file = config.file) == null ? void 0 : _config$file.enabled) === true) {
|
|
980
981
|
var _config$file2, _config$file3, _config$file4, _config$file5, _config$file6, _config$file7, _config$file8, _config$file9, _config$file10, _config$file11;
|
|
982
|
+
var datePattern = (config == null || (_config$file2 = config.file) == null ? void 0 : _config$file2.datePattern) || 'YYYY-MM-DD';
|
|
981
983
|
var fileTransport = new winston.transports.DailyRotateFile({
|
|
982
|
-
filename: (config == null || (_config$file2 = config.file) == null ? void 0 : _config$file2.filename) || '/var/log/afialapis/miolo.%DATE%.log',
|
|
983
984
|
level: (config == null || (_config$file3 = config.file) == null ? void 0 : _config$file3.level) || (config == null ? void 0 : config.level) || 'info',
|
|
984
985
|
frequency: config == null || (_config$file4 = config.file) == null ? void 0 : _config$file4.frequency,
|
|
985
|
-
datePattern:
|
|
986
|
-
zippedArchive: (config == null || (_config$
|
|
987
|
-
maxSize: (config == null || (_config$
|
|
988
|
-
maxFiles: (config == null || (_config$
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
symlinkName:
|
|
986
|
+
datePattern: datePattern,
|
|
987
|
+
zippedArchive: (config == null || (_config$file5 = config.file) == null ? void 0 : _config$file5.zippedArchive) == true,
|
|
988
|
+
maxSize: (config == null || (_config$file6 = config.file) == null ? void 0 : _config$file6.maxSize) || '20m',
|
|
989
|
+
maxFiles: (config == null || (_config$file7 = config.file) == null ? void 0 : _config$file7.maxFiles) || '10d',
|
|
990
|
+
filename: config != null && (_config$file8 = config.file) != null && _config$file8.filename ? config.file.filename.replace('%MIOLO%', prefix) : '/var/log/afialapis/miolo.%DATE%.log',
|
|
991
|
+
auditFile: config != null && (_config$file9 = config.file) != null && _config$file9.auditFile ? config.file.auditFile.replace('%MIOLO%', prefix) : '/var/log/afialapis/miolo.audit.json',
|
|
992
|
+
symlinkName: config != null && (_config$file10 = config.file) != null && _config$file10.symlinkName ? config.file.symlinkName.replace('%MIOLO%', prefix) : 'miolo.log',
|
|
993
|
+
createSymlink: (config == null || (_config$file11 = config.file) == null ? void 0 : _config$file11.createSymlink) == true,
|
|
992
994
|
watchLog: true,
|
|
993
995
|
humanReadableUnhandledException: true,
|
|
994
996
|
handleExceptions: true
|
|
995
997
|
});
|
|
998
|
+
var _file_log = function _file_log(s) {
|
|
999
|
+
var _config$console3;
|
|
1000
|
+
var currentDate = intre.intre_to_str(intre.intre_now(), datePattern);
|
|
1001
|
+
var filename = path.join(fileTransport.dirname, fileTransport.filename.replace('%DATE%', currentDate));
|
|
1002
|
+
var msg = myFormat({
|
|
1003
|
+
level: 'info',
|
|
1004
|
+
message: "[logger][file-rotate] " + s + "\n",
|
|
1005
|
+
timestamp: intre.intre_now()
|
|
1006
|
+
});
|
|
1007
|
+
try {
|
|
1008
|
+
fs.accessSync(filename, fs.constants.F_OK);
|
|
1009
|
+
fs.appendFileSync(filename, msg);
|
|
1010
|
+
} catch (_) {
|
|
1011
|
+
fs.writeFileSync(filename, msg, {
|
|
1012
|
+
encoding: 'utf-8'
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
if ((config == null || (_config$console3 = config.console) == null ? void 0 : _config$console3.enabled) === true) {
|
|
1016
|
+
var _config$console4;
|
|
1017
|
+
if (fileTransport.levels[(config == null || (_config$console4 = config.console) == null ? void 0 : _config$console4.level) || (config == null ? void 0 : config.level) || 'error'] >= fileTransport.levels['info']) {
|
|
1018
|
+
console.log(msg);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
};
|
|
1022
|
+
var _fname = function _fname(f) {
|
|
1023
|
+
return tinguir.magenta(f.replace(fileTransport.dirname + path.sep, ''));
|
|
1024
|
+
};
|
|
1025
|
+
fileTransport.on('new', function (newFilename) {
|
|
1026
|
+
_file_log("New log file: " + _fname(newFilename));
|
|
1027
|
+
});
|
|
996
1028
|
fileTransport.on('rotate', function (oldFilename, newFilename) {
|
|
1029
|
+
_file_log("Rotating log file: " + _fname(oldFilename) + " -- " + _fname(newFilename));
|
|
1030
|
+
});
|
|
1031
|
+
fileTransport.on('archive', function (zipFilename) {
|
|
1032
|
+
_file_log("Archived log file: " + _fname(zipFilename));
|
|
1033
|
+
});
|
|
1034
|
+
fileTransport.on('logRemoved', function (removedFilename) {
|
|
1035
|
+
_file_log("Removed log file: " + _fname(removedFilename));
|
|
1036
|
+
});
|
|
1037
|
+
fileTransport.on('error', function (error) {
|
|
997
1038
|
// do something fun
|
|
998
|
-
|
|
1039
|
+
_file_log(tinguir.red("Error: " + error));
|
|
999
1040
|
});
|
|
1000
1041
|
_log_transports.push(fileTransport);
|
|
1001
1042
|
}
|
|
@@ -1019,9 +1060,16 @@ var init_logger = function init_logger(config, emailer, prefix) {
|
|
|
1019
1060
|
level: (config == null ? void 0 : config.level) || 'silly',
|
|
1020
1061
|
format: combine(errors({
|
|
1021
1062
|
stack: true
|
|
1022
|
-
}), timestamp(), myFormat),
|
|
1063
|
+
}), timestamp(), printf(myFormat)),
|
|
1023
1064
|
transports: _log_transports
|
|
1024
1065
|
});
|
|
1066
|
+
|
|
1067
|
+
//console.log(logger.transports[0])
|
|
1068
|
+
try {
|
|
1069
|
+
logger.info("[logger] Inited for " + logger.transports.map(function (t) {
|
|
1070
|
+
return t.name + " (" + t.level + ")" + (t.silent ? tinguir.red(' SILENT!') : '');
|
|
1071
|
+
}).join(', '));
|
|
1072
|
+
} catch (_) {}
|
|
1025
1073
|
return logger;
|
|
1026
1074
|
};
|
|
1027
1075
|
|
|
@@ -1211,7 +1259,7 @@ function ipsum_download_file(callback, remote_file, logger) {
|
|
|
1211
1259
|
callback(content);
|
|
1212
1260
|
});
|
|
1213
1261
|
}).on('error', function (err) {
|
|
1214
|
-
lerr("[
|
|
1262
|
+
lerr("[cron][" + tinguir.cyan('IPsum') + "] Error downloading remote file (" + err.toString() + ")");
|
|
1215
1263
|
callback('');
|
|
1216
1264
|
});
|
|
1217
1265
|
}
|
|
@@ -1234,7 +1282,7 @@ function _ipsum_ips_from_content(content, logger) {
|
|
|
1234
1282
|
});
|
|
1235
1283
|
return ips;
|
|
1236
1284
|
} catch (error) {
|
|
1237
|
-
lerr("[
|
|
1285
|
+
lerr("[cron][" + tinguir.cyan('IPsum') + "] Error getting IPs from content");
|
|
1238
1286
|
return [];
|
|
1239
1287
|
}
|
|
1240
1288
|
}
|
|
@@ -1245,14 +1293,14 @@ function _ipsum_ips_from_file(folder, logger) {
|
|
|
1245
1293
|
var lerr = logger ? logger.error : console.error;
|
|
1246
1294
|
if (!fs.existsSync(folder)) {
|
|
1247
1295
|
if (logger) {
|
|
1248
|
-
lerr("[
|
|
1296
|
+
lerr("[cron][" + tinguir.cyan('IPsum') + "] Folder " + folder + " does not exist");
|
|
1249
1297
|
}
|
|
1250
1298
|
return [];
|
|
1251
1299
|
}
|
|
1252
1300
|
var local_path = path.join(folder, _IPSUM_FILE_NAME);
|
|
1253
1301
|
if (!fs.existsSync(local_path)) {
|
|
1254
1302
|
if (logger) {
|
|
1255
|
-
lerr("[
|
|
1303
|
+
lerr("[cron][" + tinguir.cyan('IPsum') + "] File " + local_path + " does not exist");
|
|
1256
1304
|
}
|
|
1257
1305
|
return [];
|
|
1258
1306
|
}
|
|
@@ -1268,11 +1316,11 @@ function ipsum_update(folder, callback, logger) {
|
|
|
1268
1316
|
var lerr = logger ? logger.error : console.error;
|
|
1269
1317
|
var ldbg = logger ? logger.debug : console.log;
|
|
1270
1318
|
if (!fs.existsSync(folder)) {
|
|
1271
|
-
lerr("[
|
|
1319
|
+
lerr("[cron][" + tinguir.cyan('IPsum') + "] Folder " + folder + " does not exist");
|
|
1272
1320
|
return;
|
|
1273
1321
|
}
|
|
1274
1322
|
try {
|
|
1275
|
-
ldbg("[
|
|
1323
|
+
ldbg("[cron][" + tinguir.cyan('IPsum') + "] Updating file...");
|
|
1276
1324
|
ipsum_download_file(function (content) {
|
|
1277
1325
|
var local_path = path.join(folder, _IPSUM_FILE_NAME);
|
|
1278
1326
|
fs.writeFileSync(local_path, content, {
|
|
@@ -1282,13 +1330,13 @@ function ipsum_update(folder, callback, logger) {
|
|
|
1282
1330
|
var ntot = content.split('\n').length;
|
|
1283
1331
|
var ips = _ipsum_ips_from_content(content, logger);
|
|
1284
1332
|
var nfilt = ips.length;
|
|
1285
|
-
ldbg("[
|
|
1333
|
+
ldbg("[cron][" + tinguir.cyan('IPsum') + "] File downloaded. " + ntot + " ips on the list (" + nfilt + " appearing in " + _IPSUM_NLISTS + " or more lists)");
|
|
1286
1334
|
if (callback) {
|
|
1287
1335
|
callback(ips);
|
|
1288
1336
|
}
|
|
1289
1337
|
});
|
|
1290
1338
|
} catch (error) {
|
|
1291
|
-
lerr("[
|
|
1339
|
+
lerr("[cron][" + tinguir.cyan('IPsum') + "] Error " + error + " updating the file");
|
|
1292
1340
|
}
|
|
1293
1341
|
}
|
|
1294
1342
|
function ipsum_config() {
|
|
@@ -1298,7 +1346,7 @@ function ipsum_config() {
|
|
|
1298
1346
|
onTick: function onTick(miolo, _onCompleted) {
|
|
1299
1347
|
var folder = miolo.config.http.ratelimit.ipsum_folder || _IPSUM_DEF_FOLDER;
|
|
1300
1348
|
ipsum_update(folder, function (ips) {
|
|
1301
|
-
miolo.logger.info("[
|
|
1349
|
+
miolo.logger.info("[cron][" + tinguir.cyan('IPsum') + "] File downloaded. " + tinguir.green(ips.length) + " ips will be " + tinguir.yellow('blacklisted') + "!");
|
|
1302
1350
|
}, miolo.logger);
|
|
1303
1351
|
},
|
|
1304
1352
|
start: true
|
|
@@ -1315,10 +1363,10 @@ function ipsum_read_ips(folder, callback, logger) {
|
|
|
1315
1363
|
if (callback) {
|
|
1316
1364
|
callback(ips);
|
|
1317
1365
|
}
|
|
1318
|
-
ldbg("[
|
|
1366
|
+
ldbg("[cron][" + tinguir.cyan('IPsum') + "] File contains " + ips.length + " ips");
|
|
1319
1367
|
return ips;
|
|
1320
1368
|
} else {
|
|
1321
|
-
lwarn("[
|
|
1369
|
+
lwarn("[cron][" + tinguir.cyan('IPsum') + "] File is empty. Launching update...");
|
|
1322
1370
|
ipsum_update(folder, callback, logger);
|
|
1323
1371
|
return [];
|
|
1324
1372
|
}
|
|
@@ -3155,21 +3203,21 @@ function init_cron_job(miolo, config) {
|
|
|
3155
3203
|
// onTick(miolo, onComplete)
|
|
3156
3204
|
function (onComplete) {
|
|
3157
3205
|
try {
|
|
3158
|
-
logger.silly("[
|
|
3206
|
+
logger.silly("[cron][Custom Job " + tinguir.cyan(name) + "] " + tinguir.green_bold('ticks!'));
|
|
3159
3207
|
config.onTick(miolo, onComplete);
|
|
3160
3208
|
} catch (e) {
|
|
3161
|
-
logger.error("[
|
|
3209
|
+
logger.error("[cron][Custom Job " + tinguir.cyan(name) + "] Error at onTick()");
|
|
3162
3210
|
logger.error(e);
|
|
3163
3211
|
}
|
|
3164
3212
|
},
|
|
3165
3213
|
// onComplete(miolo)
|
|
3166
3214
|
function () {
|
|
3167
|
-
logger.silly("[
|
|
3215
|
+
logger.silly("[cron][Custom Job " + tinguir.cyan(name) + "] " + tinguir.green_bold('completed!'));
|
|
3168
3216
|
if (config != null && config.onComplete) {
|
|
3169
3217
|
try {
|
|
3170
3218
|
config.onComplete(miolo);
|
|
3171
3219
|
} catch (e) {
|
|
3172
|
-
logger.error("[
|
|
3220
|
+
logger.error("[cron][Custom Job " + tinguir.cyan(name) + "] Error at onComplete()");
|
|
3173
3221
|
logger.error(e);
|
|
3174
3222
|
}
|
|
3175
3223
|
}
|
|
@@ -3194,18 +3242,18 @@ function _sys_check_and_log(logger) {
|
|
|
3194
3242
|
var total = Math.round(_toMB(os.totalmem()), 2);
|
|
3195
3243
|
var perc = Math.round(used * 100 / total, 2);
|
|
3196
3244
|
if (perc > 80) {
|
|
3197
|
-
logger.error("[
|
|
3245
|
+
logger.error("[cron][" + tinguir.cyan('SysCheck') + "] RAM " + tinguir.yellow(used) + " MB used of " + tinguir.green(total) + " MB (" + tinguir.yellow(perc) + " %)");
|
|
3198
3246
|
} else {
|
|
3199
|
-
logger.info("[
|
|
3247
|
+
logger.info("[cron][" + tinguir.cyan('SysCheck') + "] RAM " + tinguir.yellow(used) + " MB used of " + tinguir.green(total) + " MB (" + tinguir.yellow(perc) + " %)");
|
|
3200
3248
|
}
|
|
3201
3249
|
diskspace.check('/', function (err, result) {
|
|
3202
3250
|
var used = Math.round(_toGB(result.used), 2);
|
|
3203
3251
|
var total = Math.round(_toGB(result.total), 2);
|
|
3204
3252
|
var free = Math.round(_toGB(result.free), 2);
|
|
3205
3253
|
if (free < 1) {
|
|
3206
|
-
logger.error("[
|
|
3254
|
+
logger.error("[cron][" + tinguir.cyan('SysCheck') + "] DISK " + tinguir.yellow(used) + " GB used of " + tinguir.green(total) + " GB (" + tinguir.yellow(free) + " GB free)");
|
|
3207
3255
|
} else {
|
|
3208
|
-
logger.info("[
|
|
3256
|
+
logger.info("[cron][" + tinguir.cyan('SysCheck') + "] DISK " + tinguir.yellow(used) + " GB used of " + tinguir.green(total) + " GB (" + tinguir.yellow(free) + " GB free)");
|
|
3209
3257
|
}
|
|
3210
3258
|
});
|
|
3211
3259
|
}
|
|
@@ -3248,7 +3296,7 @@ function init_cron(app, custom) {
|
|
|
3248
3296
|
})[0];
|
|
3249
3297
|
}
|
|
3250
3298
|
if (!jobInfo) {
|
|
3251
|
-
logger.error("[
|
|
3299
|
+
logger.error("[cron] Cannot stop job " + tinguir.cyan(idxOrName) + ": Not Found");
|
|
3252
3300
|
}
|
|
3253
3301
|
return jobInfo;
|
|
3254
3302
|
};
|
|
@@ -3256,9 +3304,9 @@ function init_cron(app, custom) {
|
|
|
3256
3304
|
try {
|
|
3257
3305
|
jobInfo.job.stop();
|
|
3258
3306
|
jobInfo.running = true;
|
|
3259
|
-
logger.debug("[
|
|
3307
|
+
logger.debug("[cron][Job " + tinguir.cyan(jobInfo.name) + "] " + tinguir.green_bold('manually started!'));
|
|
3260
3308
|
} catch (e) {
|
|
3261
|
-
logger.error("[
|
|
3309
|
+
logger.error("[cron][Job " + tinguir.cyan(jobInfo.name) + "] Error manually starting it");
|
|
3262
3310
|
logger.error(e);
|
|
3263
3311
|
}
|
|
3264
3312
|
};
|
|
@@ -3266,9 +3314,9 @@ function init_cron(app, custom) {
|
|
|
3266
3314
|
try {
|
|
3267
3315
|
jobInfo.job.stop();
|
|
3268
3316
|
jobInfo.running = false;
|
|
3269
|
-
logger.debug("[
|
|
3317
|
+
logger.debug("[cron][Job " + tinguir.cyan(jobInfo.name) + "] " + tinguir.yellow_bold('manually stopped!'));
|
|
3270
3318
|
} catch (e) {
|
|
3271
|
-
logger.error("[
|
|
3319
|
+
logger.error("[cron][Job " + tinguir.cyan(jobInfo.name) + "] Error manually stopping it");
|
|
3272
3320
|
logger.error(e);
|
|
3273
3321
|
}
|
|
3274
3322
|
};
|
|
@@ -3400,7 +3448,7 @@ function miolo(sconfig, render) {
|
|
|
3400
3448
|
_context2.next = 4;
|
|
3401
3449
|
return listenAsync(server, config.http.port, config.http.hostname);
|
|
3402
3450
|
case 4:
|
|
3403
|
-
app.context.miolo.logger.info("miolo is listening on " + config.http.hostname + ":" + config.http.port);
|
|
3451
|
+
app.context.miolo.logger.info("[http] miolo is listening on " + config.http.hostname + ":" + config.http.port);
|
|
3404
3452
|
|
|
3405
3453
|
// Make server accessible from app object
|
|
3406
3454
|
app.server = server;
|
|
@@ -3414,7 +3462,7 @@ function miolo(sconfig, render) {
|
|
|
3414
3462
|
_context.next = 2;
|
|
3415
3463
|
return httpTerminator$1.terminate();
|
|
3416
3464
|
case 2:
|
|
3417
|
-
app.context.miolo.logger.info("miolo has been shutdowned from " + config.http.hostname + ":" + config.http.port);
|
|
3465
|
+
app.context.miolo.logger.info("[http] miolo has been shutdowned from " + config.http.hostname + ":" + config.http.port);
|
|
3418
3466
|
case 3:
|
|
3419
3467
|
case "end":
|
|
3420
3468
|
return _context.stop();
|
|
@@ -3428,7 +3476,7 @@ function miolo(sconfig, render) {
|
|
|
3428
3476
|
// }
|
|
3429
3477
|
|
|
3430
3478
|
// const server= app.listen(config.http.port, config.http.hostname, function () {
|
|
3431
|
-
// app.context.miolo.logger.info(`miolo is listening on ${config.http.hostname}:${config.http.port}`)
|
|
3479
|
+
// app.context.miolo.logger.info(`[http] miolo is listening on ${config.http.hostname}:${config.http.port}`)
|
|
3432
3480
|
// init_cron(app.context.miolo.logger)
|
|
3433
3481
|
//
|
|
3434
3482
|
// if (callback!=undefined) {
|