[gnome-shell] extensionUtils: don't log verbosely on missing extension directory
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] extensionUtils: don't log verbosely on missing extension directory
- Date: Fri, 5 Oct 2012 17:28:42 +0000 (UTC)
commit 9395f310d64cb2cb441f9ef0d5702cda476294f6
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Oct 4 00:57:06 2012 -0400
extensionUtils: don't log verbosely on missing extension directory
A missing extension directory isn't worth debug spew, so check
if the error when reading the extension directory is NOT_FOUND,
and if so, suppress output.
https://bugzilla.gnome.org/show_bug.cgi?id=685466
js/misc/extensionUtils.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/misc/extensionUtils.js b/js/misc/extensionUtils.js
index 40e001b..e0969c4 100644
--- a/js/misc/extensionUtils.js
+++ b/js/misc/extensionUtils.js
@@ -161,7 +161,8 @@ const ExtensionFinder = new Lang.Class({
try {
fileEnum = dir.enumerate_children('standard::*', Gio.FileQueryInfoFlags.NONE, null);
} catch(e) {
- logError(e, 'Could not enumerate extensions directory');
+ if (e.domain != Gio.io_error_quark() || e.code != Gio.IOErrorEnum.NOT_FOUND)
+ logError(e, 'Could not enumerate extensions directory');
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]