From 3afc8f25e12f653b56ebe9cb6c5c4f6c8e12c73f Mon Sep 17 00:00:00 2001 From: Abhi <43648792+abhipatel12@users.noreply.github.com> Date: Wed, 4 Feb 2026 14:48:33 -0500 Subject: [PATCH] fix(hooks): remove unnecessary logging for hook registration (#18332) --- packages/core/src/hooks/hookRegistry.test.ts | 2 +- packages/core/src/hooks/hookRegistry.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/hooks/hookRegistry.test.ts b/packages/core/src/hooks/hookRegistry.test.ts index 5d6d3ccced..0308eae70a 100644 --- a/packages/core/src/hooks/hookRegistry.test.ts +++ b/packages/core/src/hooks/hookRegistry.test.ts @@ -90,7 +90,7 @@ describe('HookRegistry', () => { await hookRegistry.initialize(); expect(hookRegistry.getAllHooks()).toHaveLength(0); - expect(mockDebugLogger.log).toHaveBeenCalledWith( + expect(mockDebugLogger.debug).toHaveBeenCalledWith( 'Hook registry initialized with 0 hook entries', ); }); diff --git a/packages/core/src/hooks/hookRegistry.ts b/packages/core/src/hooks/hookRegistry.ts index 072f049f0a..36987f2c6a 100644 --- a/packages/core/src/hooks/hookRegistry.ts +++ b/packages/core/src/hooks/hookRegistry.ts @@ -41,7 +41,7 @@ export class HookRegistry { this.entries = []; this.processHooksFromConfig(); - debugLogger.log( + debugLogger.debug( `Hook registry initialized with ${this.entries.length} hook entries`, ); }