fix: only add enabled_logs when not empty

This commit is contained in:
KernelDeimos 2024-11-13 22:15:09 -05:00
parent caf8d2a055
commit 34836e374f

View File

@ -9,7 +9,10 @@ export class DebugService extends Service {
const svc_exec = this.services.get('exec');
svc_exec.register_param_provider(() => {
return {
enabled_logs: this.enabled_logs.join(';'),
...(this.enabled_logs.length > 0
? { enabled_logs: this.enabled_logs.join(';') }
: {}
),
};
});
}