Standardized the z-indexs and did some pop up updates

This commit is contained in:
2025-08-03 14:31:51 -06:00
parent 3231a4973c
commit 2a53008e04
18 changed files with 62 additions and 26 deletions

View File

@@ -1,9 +1,20 @@
const winston = require('winston');
const config = require('../config');
// Debug: Check if logger is being created multiple times
const instanceId = Math.random().toString(36).substr(2, 9);
console.log(`[DEBUG] Creating logger instance ${instanceId} at ${new Date().toISOString()}`);
// Ensure we only create one logger instance
if (global.appLogger) {
console.log(`[DEBUG] Reusing existing logger instance`);
module.exports = global.appLogger;
return;
}
const logger = winston.createLogger({
level: config.isProduction ? 'info' : 'debug',
defaultMeta: { service: 'bnkops-map' },
defaultMeta: { service: 'bnkops-map', instanceId },
transports: [
new winston.transports.Console({
format: winston.format.combine(
@@ -39,4 +50,7 @@ if (config.isProduction) {
}));
}
// Store logger globally to prevent multiple instances
global.appLogger = logger;
module.exports = logger;