Skip to content

Commit df11986

Browse files
committed
Lower log level of empty modules to debug
1 parent 94a8856 commit df11986

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/loading/ComponentRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class ComponentRegistry {
7272
this.registerComponent(component);
7373
}
7474
} else {
75-
this.logger.warn(`Registered a module ${moduleResource.value} without components.`);
75+
this.logger.debug(`Registered a module ${moduleResource.value} without components.`);
7676
}
7777
}
7878

test/unit/loading/ComponentRegistry-test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ describe('ComponentRegistry', () => {
2121
});
2222
logger = <any> {
2323
warn: jest.fn(),
24+
debug: jest.fn(),
2425
};
2526
componentResources = {};
2627
componentRegistry = new ComponentRegistry({
@@ -123,7 +124,7 @@ describe('ComponentRegistry', () => {
123124
components: [],
124125
});
125126
componentRegistry.registerModuleResource(module);
126-
expect(logger.warn).toHaveBeenCalledWith(`Registered a module ex:MyModule without components.`);
127+
expect(logger.debug).toHaveBeenCalledWith(`Registered a module ex:MyModule without components.`);
127128
});
128129

129130
it('should handle a module with one component that already has another module', () => {

0 commit comments

Comments
 (0)