Version 1.1.1 - Adding Repository
This commit is contained in:
parent
33fea0cae2
commit
c3bb65e012
11
main.js
11
main.js
@ -6,9 +6,11 @@ const fs = require("fs")
|
|||||||
const path = require("path")
|
const path = require("path")
|
||||||
const basic = require("./basics")
|
const basic = require("./basics")
|
||||||
|
|
||||||
|
|
||||||
setup()
|
setup()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Configuration of Loguix
|
||||||
|
*/
|
||||||
function setup() {
|
function setup() {
|
||||||
|
|
||||||
if(!fs.existsSync(__dirname + path.sep + "logs" + path.sep)) {
|
if(!fs.existsSync(__dirname + path.sep + "logs" + path.sep)) {
|
||||||
@ -20,7 +22,7 @@ function setup() {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
console.log("[Logs] -Erreur d'écriture par manque de permission ")
|
console.log("[Logs] - Erreur d'écriture par manque de permission ")
|
||||||
console.log(err)
|
console.log(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,9 +34,8 @@ function setup() {
|
|||||||
flags: 'a'
|
flags: 'a'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
process.config.variables.
|
||||||
logStream.write("[" + require("../../package.json").name + "@"+ require("../../package.json").version + "] - [" + basic.getDate(true) + "]" + "\n")
|
logStream.write("[" + npm_package_name + "@"+ npm_package_version + "] - [" + basic.getDate(true) + "]" + "\n")
|
||||||
logStream.write("Subsonics-Web by Raphix" + "\n")
|
|
||||||
logStream.write("----------------------------------------------------------------" + "\n")
|
logStream.write("----------------------------------------------------------------" + "\n")
|
||||||
|
|
||||||
process.on('uncaughtException', (err) => {
|
process.on('uncaughtException', (err) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user