[gnome-shell/gnome-42] sessionMode: Log mode changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-42] sessionMode: Log mode changes
- Date: Thu, 11 Aug 2022 12:43:05 +0000 (UTC)
commit 26ac2d8b1c22bdfa5870fccd9682ef2876100997
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Aug 9 12:52:58 2022 +0200
sessionMode: Log mode changes
Now that console.debug() makes it easy to log message with DEBUG
priority, we can be a lot more generous with logging without
spamming logs (by default).
Those turned out useful in figuring out the issue in the next
commit, so let's keep them.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2413>
(cherry picked from commit 111e982eb71d4a3701f22ddff55a4b53a47f1067)
js/ui/sessionMode.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index b8b627370d..ce3afe09de 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -156,6 +156,7 @@ var SessionMode = class {
}
pushMode(mode) {
+ console.debug(`sessionMode: Pushing mode ${mode}`);
this._modeStack.push(mode);
this._sync();
}
@@ -163,6 +164,8 @@ var SessionMode = class {
popMode(mode) {
if (this.currentMode != mode || this._modeStack.length === 1)
throw new Error("Invalid SessionMode.popMode");
+
+ console.debug(`sessionMode: Popping mode ${mode}`);
this._modeStack.pop();
this._sync();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]