mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
log worker ID
This commit is contained in:
parent
ff5e9a601b
commit
5533a3ef91
@ -1,3 +1,4 @@
|
||||
var cluster = require("cluster");
|
||||
var config = require("./config");
|
||||
|
||||
var exp = {};
|
||||
@ -16,7 +17,7 @@ function split_args(args) {
|
||||
|
||||
function log(level, args) {
|
||||
var time = new Date().toISOString();
|
||||
console.log(time + ": " + level + ": " + split_args(args));
|
||||
console.log(time + " " + (cluster.worker && cluster.worker.id || "M") + " " + level + ": " + split_args(args));
|
||||
}
|
||||
|
||||
exp.log = function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user