[gnome-shell] sessionMode: Log mode changes
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] sessionMode: Log mode changes
- Date: Wed, 10 Aug 2022 16:36:37 +0000 (UTC)
commit 111e982eb71d4a3701f22ddff55a4b53a47f1067
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>
js/ui/sessionMode.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/js/ui/sessionMode.js b/js/ui/sessionMode.js
index c82e8329c9..d9dbdefc6b 100644
--- a/js/ui/sessionMode.js
+++ b/js/ui/sessionMode.js
@@ -158,6 +158,7 @@ var SessionMode = class extends Signals.EventEmitter {
}
pushMode(mode) {
+ console.debug(`sessionMode: Pushing mode ${mode}`);
this._modeStack.push(mode);
this._sync();
}
@@ -165,6 +166,8 @@ var SessionMode = class extends Signals.EventEmitter {
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]