fix: issues with logging and functionality
This commit is contained in:
7
app.js
7
app.js
@ -6,7 +6,7 @@ const { logger } = require('./src/js/logger.js');
|
||||
const favicon = require('serve-favicon');
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3512;
|
||||
require('./src/js/utils.js')
|
||||
require('./src/js/utils.js');
|
||||
|
||||
app.set('trust proxy', true);
|
||||
|
||||
@ -971,7 +971,10 @@ app.post('/api/log', (req, res) => {
|
||||
logData = req.body;
|
||||
} else {
|
||||
// If no parsable data found, create a basic log entry
|
||||
logData = { eventType: 'unknown', timestamp: global.Utils.toIsoString(new Date()) };
|
||||
logData = {
|
||||
eventType: 'unknown',
|
||||
timestamp: global.Utils.toIsoString(new Date()),
|
||||
};
|
||||
}
|
||||
|
||||
// Enrich log with server-side data
|
||||
|
Reference in New Issue
Block a user