From d393cff259e322805c652ee4bf27001b38cf4fd4 Mon Sep 17 00:00:00 2001 From: Andy Holmes Date: Sat, 23 Sep 2023 11:15:41 -0700 Subject: [PATCH] refactor: replace `logError()` with `console` --- src/remote.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/remote.js b/src/remote.js index d98faa5..986cb06 100644 --- a/src/remote.js +++ b/src/remote.js @@ -75,7 +75,7 @@ export class Device extends Gio.DBusProxy { for (const name in changed.deepUnpack()) this.notify(properties[name]); } catch (e) { - logError(e); + console.error(e); } } @@ -180,7 +180,7 @@ export class Service extends Gio.DBusProxy { this._onNameOwnerChanged(); } catch (e) { if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) - logError(e); + console.warning(e); } } @@ -196,7 +196,7 @@ export class Service extends Gio.DBusProxy { this.items_changed(position, 0, 1); } catch (e) { if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) - logError(e, device.g_object_path); + console.warning(e); } } @@ -257,7 +257,7 @@ export class Service extends Gio.DBusProxy { }); } catch (e) { if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) - logError(e); + console.warning(e); } } ); @@ -305,7 +305,7 @@ export class Service extends Gio.DBusProxy { } } catch (e) { if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) - logError(e); + console.warning(e); } finally { this._activating = false; } @@ -340,7 +340,7 @@ export class Service extends Gio.DBusProxy { connection.call_finish(res); } catch (e) { if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) - logError(e); + console.warning(e); } } ); @@ -367,7 +367,7 @@ export class Service extends Gio.DBusProxy { connection.call_finish(res); } catch (e) { if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED)) - logError(e); + console.warning(e); } } );