|
@@ -121,7 +121,7 @@ const init = () => {
|
|
|
analytics({
|
|
|
type: "Error",
|
|
|
data: {
|
|
|
- errorMessage: `Error while setting up the HTTP response to "${ip.substr(8)}...": ${err}`,
|
|
|
+ errorMessage: `Error while setting up the HTTP response to "${ip.substring(8)}...": ${err}`,
|
|
|
ipAddress: ip,
|
|
|
urlParameters: parsedURL.queryParams,
|
|
|
urlPath: parsedURL.pathArray
|
|
@@ -386,7 +386,7 @@ const init = () => {
|
|
|
"message": `Restarting ${settings.info.name}`,
|
|
|
"timestamp": new Date().getTime()
|
|
|
}, lang));
|
|
|
- console.log(`\n\n[${logger.getTimestamp(" | ")}] ${jsl.colors.fg.red}IP ${jsl.colors.fg.yellow}${ip.substr(0, 8)}[...]${jsl.colors.fg.red} sent a restart command\n\n\n${jsl.colors.rst}`);
|
|
|
+ console.log(`\n\n[${logger.getTimestamp(" | ")}] ${jsl.colors.fg.red}IP ${jsl.colors.fg.yellow}${ip.substring(0, 8)}[...]${jsl.colors.fg.red} sent a restart command\n\n\n${jsl.colors.rst}`);
|
|
|
process.exit(2); // if the process is exited with status 2, the package node-wrap will restart the process
|
|
|
}
|
|
|
else return respondWithErrorPage(res, 400, tr(lang, "invalidSubmissionOrWrongEndpoint", (parsedURL.pathArray != null ? parsedURL.pathArray[0] : "/")));
|