cleaned up logs for apps
This commit is contained in:
parent
4726a85cf3
commit
43f4429998
7 changed files with 28 additions and 28 deletions
|
|
@ -67,7 +67,7 @@ async function initializeServices() {
|
|||
|
||||
try {
|
||||
// Initialize MongoDB client
|
||||
logger.info('Connecting to MongoDB...');
|
||||
logger.debug('Connecting to MongoDB...');
|
||||
const mongoConfig = databaseConfig.mongodb;
|
||||
mongoClient = await createAndConnectMongoDBClient({
|
||||
uri: mongoConfig.uri,
|
||||
|
|
@ -84,7 +84,7 @@ async function initializeServices() {
|
|||
logger.info('MongoDB connected');
|
||||
|
||||
// Initialize PostgreSQL client
|
||||
logger.info('Connecting to PostgreSQL...');
|
||||
logger.debug('Connecting to PostgreSQL...');
|
||||
const pgConfig = databaseConfig.postgres;
|
||||
postgresClient = await createAndConnectPostgreSQLClient({
|
||||
host: pgConfig.host,
|
||||
|
|
@ -102,7 +102,7 @@ async function initializeServices() {
|
|||
logger.info('PostgreSQL connected');
|
||||
|
||||
// Initialize sync managers
|
||||
logger.info('Initializing sync managers...');
|
||||
logger.debug('Initializing sync managers...');
|
||||
await syncManager.initialize();
|
||||
await enhancedSyncManager.initialize();
|
||||
logger.info('Sync managers initialized');
|
||||
|
|
@ -177,7 +177,7 @@ shutdown.onShutdown(async () => {
|
|||
|
||||
// Start the service
|
||||
startServer().catch(error => {
|
||||
logger.error('Failed to start data sync service', { error });
|
||||
logger.fatal('Failed to start data sync service', { error });
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue