fix: prevent large logs from service events (2)

This commit is contained in:
KernelDeimos 2024-07-24 02:31:24 -04:00 committed by Eric Dubé
parent d5ec40078f
commit e514dfcf50
2 changed files with 6 additions and 8 deletions

View File

@ -68,12 +68,8 @@ class RegistryService extends BaseService {
async ['__on_boot.consolidation'] () {
const services = this.services;
await services.emit('registry.collections', {
svc_registry: this,
});
await services.emit('registry.entries', {
svc_registry: this,
});
await services.emit('registry.collections');
await services.emit('registry.entries');
}
register_collection (name) {

View File

@ -37,12 +37,14 @@ class DriverService extends BaseService {
this.interface_to_implementation = {};
}
async ['__on_registry.collections'] (_, { svc_registry }) {
async ['__on_registry.collections'] () {
const svc_registry = this.services.get('registry');
svc_registry.register_collection('interfaces');
svc_registry.register_collection('drivers');
}
async ['__on_registry.entries'] (_, { svc_registry }) {
async ['__on_registry.entries'] () {
const services = this.services;
const svc_registry = services.get('registry');
const col_interfaces = svc_registry.get('interfaces');
const col_drivers = svc_registry.get('drivers');
{