mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 16:40:41 +00:00
fix: decrease log usage (#2449)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user