fix: decrease log usage (#2449)

This commit is contained in:
Daniel Salazar
2026-02-08 22:26:23 -08:00
committed by GitHub
parent 380e72cad2
commit f9805dfffb
@@ -232,7 +232,7 @@ class DriverService extends BaseService {
get_default_implementation (interface_name) {
// If there's a hardcoded implementation, use that
// (^ temporary, until all are migrated)
if ( this.interface_to_implementation.hasOwnProperty(interface_name) ) {
if ( Object.prototype.hasOwnProperty.call(this.interface_to_implementation, interface_name) ) {
return this.interface_to_implementation[interface_name];
}
}
@@ -251,7 +251,7 @@ class DriverService extends BaseService {
try {
return await this._call(o);
} catch ( e ) {
this.log.error(`Driver error response: ${ e.toString()}`);
this.log.error(`Driver error response: ${ e.toString().slice(0, 100)}${e.toString().length > 100 ? '...' : ''}`);
if ( ! (e instanceof APIError) ) {
this.errors.report('driver', {
source: e,
@@ -414,7 +414,7 @@ class DriverService extends BaseService {
service,
service_name,
iface, method, args,
skip_usage,
_skip_usage,
}) {
if ( ! service ) {
service = this.services.get(service_name);