feat(logging): implement centralized logging system and replace console errors with structured logs
feat(federation): add room sync and deletion notification endpoints for federated instances fix(federation): handle room deletion and update settings during sync process feat(federation): enhance FederatedRoomCard and FederatedRoomDetail components to display deleted rooms i18n: add translations for room deletion messages in English and German
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Redis from 'ioredis';
|
||||
import { log } from './logger.js';
|
||||
|
||||
const REDIS_URL = process.env.REDIS_URL || 'redis://localhost:6379';
|
||||
|
||||
@@ -13,12 +14,12 @@ const redis = new Redis(REDIS_URL, {
|
||||
redis.on('error', (err) => {
|
||||
// Suppress ECONNREFUSED noise after initial failure — only warn
|
||||
if (err.code !== 'ECONNREFUSED') {
|
||||
console.warn('⚠️ DragonflyDB error:', err.message);
|
||||
log.redis.warn(`DragonflyDB error: ${err.message}`);
|
||||
}
|
||||
});
|
||||
|
||||
redis.on('connect', () => {
|
||||
console.log('🐉 DragonflyDB connected');
|
||||
log.redis.info('DragonflyDB connected');
|
||||
});
|
||||
|
||||
export default redis;
|
||||
|
||||
Reference in New Issue
Block a user