Update index.js
This commit is contained in:
parent
5eb789dcc4
commit
2430883cc3
1 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
@ -25,7 +25,7 @@ const app = connect()
|
||||||
let output = time.getFullYear() + "-" + ("0" + (time.getMonth() + 1)).slice(-2) + "-" + ("0" + time.getDate()).slice(-2) + " " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + ">> " + ip;
|
let output = time.getFullYear() + "-" + ("0" + (time.getMonth() + 1)).slice(-2) + "-" + ("0" + time.getDate()).slice(-2) + " " + time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds() + ">> " + ip;
|
||||||
|
|
||||||
console.log(output);
|
console.log(output);
|
||||||
file.appendFile("/matrix/nginx-proxy/data/matrix-domain/server/ip-grabber/ip-addresses.log", output + '\n', (e) => {
|
file.appendFile("./ip-addresses.log", output + '\n', (e) => {
|
||||||
if (e) {
|
if (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue