Skip to content

Commit

Permalink
refactor: replace logError() with console
Browse files Browse the repository at this point in the history
  • Loading branch information
andyholmes committed Sep 23, 2023
1 parent 9ecbdd1 commit d393cff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}

Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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);
}
}
);
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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);
}
}
);
Expand All @@ -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);
}
}
);
Expand Down

0 comments on commit d393cff

Please sign in to comment.