@@ -166,8 +166,8 @@ if (!process.env.DATABASE_URL) {
166166}
167167
168168// Log startup configuration
169- logger . info ( `DATABASE_URL: ${ process . env . DATABASE_URL } ` ) ;
170- logger . info ( `PORT: ${ process . env . PORT || '4000' } ` ) ;
169+ logger . debug ( `DATABASE_URL: ${ process . env . DATABASE_URL } ` ) ;
170+ logger . debug ( `PORT: ${ process . env . PORT || '4000' } ` ) ;
171171
172172const fastify = Fastify ( {
173173 logger : false , // We use a custom winston-based logger
@@ -207,7 +207,7 @@ SelectorFactory.setUsageStorage(usageStorage);
207207// Enable debug mode if DEBUG=true environment variable is set
208208if ( process . env . DEBUG === 'true' ) {
209209 DebugManager . getInstance ( ) . setEnabled ( true ) ;
210- logger . info ( 'Debug mode auto-enabled via DEBUG=true environment variable' ) ;
210+ logger . warn ( 'Debug mode auto-enabled via DEBUG=true environment variable' ) ;
211211}
212212
213213// --- Database Initialization ---
@@ -233,7 +233,7 @@ try {
233233 const configService = ConfigService . getInstance ( ) ;
234234
235235 if ( await configService . isFirstLaunch ( ) ) {
236- logger . info ( 'First launch detected — checking for existing config files to import' ) ;
236+ logger . debug ( 'First launch detected — checking for existing config files to import' ) ;
237237
238238 // Import from plexus.yaml if it exists
239239 // Try CONFIG_FILE env var first, then check common locations
@@ -251,23 +251,23 @@ try {
251251 if ( configPath && fs . existsSync ( configPath ) ) {
252252 const yamlContent = fs . readFileSync ( configPath , 'utf-8' ) ;
253253 await configService . importFromYaml ( yamlContent ) ;
254- logger . info ( `Imported configuration from ${ configPath } into database` ) ;
254+ logger . debug ( `Imported configuration from ${ configPath } into database` ) ;
255255 } else {
256- logger . info ( 'No plexus.yaml found — starting with empty configuration' ) ;
256+ logger . debug ( 'No plexus.yaml found — starting with empty configuration' ) ;
257257 }
258258
259259 // Import from auth.json if it exists
260260 const authJsonPath = process . env . AUTH_JSON || './auth.json' ;
261261 if ( fs . existsSync ( authJsonPath ) ) {
262262 const authContent = fs . readFileSync ( authJsonPath , 'utf-8' ) ;
263263 await configService . importFromAuthJson ( authContent ) ;
264- logger . info ( `Imported OAuth credentials from ${ authJsonPath } into database` ) ;
264+ logger . debug ( `Imported OAuth credentials from ${ authJsonPath } into database` ) ;
265265 }
266266
267267 // Mark bootstrap as complete so a future restart (even with an empty
268268 // providers table) does not re-import from the YAML file.
269269 await configService . getRepository ( ) . markBootstrapped ( ) ;
270- logger . info ( 'Bootstrap complete — marked database as bootstrapped' ) ;
270+ logger . debug ( 'Bootstrap complete — marked database as bootstrapped' ) ;
271271 } catch ( importError ) {
272272 logger . error (
273273 'Failed to import config — clearing partial data for clean retry on next launch' ,
@@ -279,7 +279,7 @@ try {
279279 }
280280
281281 await configService . initialize ( ) ;
282- logger . info ( 'Configuration loaded from database' ) ;
282+ logger . debug ( 'Configuration loaded from database' ) ;
283283
284284 // Eagerly initialize OAuth auth manager so auth.json schema migration
285285 // runs during startup (instead of waiting for first OAuth request).
@@ -322,7 +322,7 @@ try {
322322let quotaEnforcer : QuotaEnforcer | undefined ;
323323try {
324324 quotaEnforcer = new QuotaEnforcer ( ) ;
325- logger . info ( 'User quota enforcer initialized' ) ;
325+ logger . debug ( 'User quota enforcer initialized' ) ;
326326} catch ( e ) {
327327 logger . error ( 'Failed to initialize user quota enforcer' , e ) ;
328328}
@@ -438,7 +438,7 @@ const embeddedByName = new Map<string, EmbeddedFile>(
438438 ( Bun . embeddedFiles as EmbeddedFile [ ] ) . map ( ( f ) => [ f . name , f ] )
439439) ;
440440
441- logger . info ( `Serving frontend from: ${ frontendDistDir } ` ) ;
441+ logger . debug ( `Serving frontend from: ${ frontendDistDir } ` ) ;
442442
443443const serveAsset = async ( reply : FastifyReply , filePath : string , ext : string ) => {
444444 const mimeType = mimeTypes [ ext ] ?? 'application/octet-stream' ;
0 commit comments