mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
fix: prevent large logs from service events (2)
This commit is contained in:
parent
d5ec40078f
commit
e514dfcf50
@ -68,12 +68,8 @@ class RegistryService extends BaseService {
|
|||||||
|
|
||||||
async ['__on_boot.consolidation'] () {
|
async ['__on_boot.consolidation'] () {
|
||||||
const services = this.services;
|
const services = this.services;
|
||||||
await services.emit('registry.collections', {
|
await services.emit('registry.collections');
|
||||||
svc_registry: this,
|
await services.emit('registry.entries');
|
||||||
});
|
|
||||||
await services.emit('registry.entries', {
|
|
||||||
svc_registry: this,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
register_collection (name) {
|
register_collection (name) {
|
||||||
|
@ -37,12 +37,14 @@ class DriverService extends BaseService {
|
|||||||
this.interface_to_implementation = {};
|
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('interfaces');
|
||||||
svc_registry.register_collection('drivers');
|
svc_registry.register_collection('drivers');
|
||||||
}
|
}
|
||||||
async ['__on_registry.entries'] (_, { svc_registry }) {
|
async ['__on_registry.entries'] () {
|
||||||
const services = this.services;
|
const services = this.services;
|
||||||
|
const svc_registry = services.get('registry');
|
||||||
const col_interfaces = svc_registry.get('interfaces');
|
const col_interfaces = svc_registry.get('interfaces');
|
||||||
const col_drivers = svc_registry.get('drivers');
|
const col_drivers = svc_registry.get('drivers');
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user