[Pkg-privacy-commits] [xul-ext-monkeysphere] 246/296: add log level preference 'log_level'
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.
commit aa202a7304e9da65806e5d4cac23687a96310710
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Tue Oct 5 22:31:28 2010 -0400
add log level preference 'log_level'
At the moment the only level is "silent", which supresses all log
messages, and is the default. Log messages will be output if it's set
to anything other than "silent".
---
Changelog | 3 ++-
defaults/preferences/monkeysphere.js | 1 +
modules/monkeysphere.jsm | 6 ++++++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/Changelog b/Changelog
index 65249f6..09d84b6 100644
--- a/Changelog
+++ b/Changelog
@@ -1,8 +1,9 @@
xul-ext-monkeysphere (0.5~pre) unstable; urgency=low
* code cleanup
+ * add log_level preference, only honors 'silent' at the moment.
- -- Jameson Rollins <jrollins at finestructure.net> Thu, 06 May 2010 08:20:15 -0400
+ -- Jameson Rollins <jrollins at finestructure.net> Tue, 05 Oct 2010 22:46:52 -0400
xul-ext-monkeysphere (0.4); urgency=low
diff --git a/defaults/preferences/monkeysphere.js b/defaults/preferences/monkeysphere.js
index 1ae2a45..c504c4f 100644
--- a/defaults/preferences/monkeysphere.js
+++ b/defaults/preferences/monkeysphere.js
@@ -1,2 +1,3 @@
pref("extensions.monkeysphere.validation_agent_socket_environment_variable", "MONKEYSPHERE_VALIDATION_AGENT_SOCKET");
pref("extensions.monkeysphere.default_socket", "http://localhost:8901");
+pref("extensions.monkeysphere.log_level", "silent");
diff --git a/modules/monkeysphere.jsm b/modules/monkeysphere.jsm
index b3789d4..a9d74c9 100644
--- a/modules/monkeysphere.jsm
+++ b/modules/monkeysphere.jsm
@@ -74,6 +74,12 @@ var agent_socket = function() {
var log = function(line) {
var message = "monkeysphere: " + line;
+ var level = prefs.getCharPref("log_level").toLowerCase();
+
+ if(level == "silent") {
+ return;
+ }
+
try {
dump(message + "\n");
try {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git
More information about the Pkg-privacy-commits
mailing list