Merged in release/2024-11-01 (pull request #1863)
release/2024-11-01 - Misc fixes
This commit is contained in:
@@ -65,7 +65,7 @@ const createLogger = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const hostname = process.env.HOSTNAME || getHostNameOrIP();
|
const internalHostname = process.env.HOSTNAME || getHostNameOrIP();
|
||||||
|
|
||||||
const getDevelopmentTransports = () => [
|
const getDevelopmentTransports = () => [
|
||||||
new winston.transports.Console({
|
new winston.transports.Console({
|
||||||
@@ -74,7 +74,7 @@ const createLogger = () => {
|
|||||||
winston.format.colorize(),
|
winston.format.colorize(),
|
||||||
winston.format.timestamp(),
|
winston.format.timestamp(),
|
||||||
winston.format.printf(({ level, message, timestamp, user, record, meta }) => {
|
winston.format.printf(({ level, message, timestamp, user, record, meta }) => {
|
||||||
const hostnameColor = `\x1b[34m${hostname}\x1b[0m`; // Blue
|
const hostnameColor = `\x1b[34m${internalHostname}\x1b[0m`; // Blue
|
||||||
const timestampColor = `\x1b[36m${timestamp}\x1b[0m`; // Cyan
|
const timestampColor = `\x1b[36m${timestamp}\x1b[0m`; // Cyan
|
||||||
const labelColor = "\x1b[33m"; // Yellow
|
const labelColor = "\x1b[33m"; // Yellow
|
||||||
const separatorColor = "\x1b[35m|\x1b[0m"; // Magenta for separators
|
const separatorColor = "\x1b[35m|\x1b[0m"; // Magenta for separators
|
||||||
@@ -118,7 +118,7 @@ const createLogger = () => {
|
|||||||
message,
|
message,
|
||||||
user,
|
user,
|
||||||
record,
|
record,
|
||||||
hostname,
|
hostname: internalHostname,
|
||||||
meta
|
meta
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user