[Pkg-mozext-commits] [firetray] 09/14: Fix logging for FF46.

David Prévot taffit at moszumanska.debian.org
Wed May 4 20:50:11 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firetray.

commit 4c7fb9422397c2d022cee77422cae9b67954b4c5
Author: foudfou <foudil.newbie+git at gmail.com>
Date:   Sun May 1 22:07:42 2016 +0200

    Fix logging for FF46.
---
 src/modules/logging.jsm | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/modules/logging.jsm b/src/modules/logging.jsm
index 3a83a97..ae8ab88 100644
--- a/src/modules/logging.jsm
+++ b/src/modules/logging.jsm
@@ -89,22 +89,12 @@ firetray.Logging = {
     SimpleFormatter.prototype = Object.create(firetray.Logging.LogMod.Formatter.prototype);
     SimpleFormatter.prototype.constructor = SimpleFormatter;
     SimpleFormatter.prototype.format = function(message) {
-      let messageString = "";
-      if (message.hasOwnProperty("message"))
-        messageString = message.message;
-      else
-        // The trick below prevents errors further down because mo is null or
-        //  undefined.
-        messageString = [
-          ("" + mo) for each
-                    ([,mo] in Iterator(message.messageObjects))].join(" ");
-
       let date = new Date(message.time);
       let dateStr = date.getHours() + ":" + date.getMinutes() + ":" +
             date.getSeconds() + "." + date.getMilliseconds();
       let stringLog = dateStr + " " +
             message.levelDesc + " " + message.loggerName + " " +
-            messageString;
+            message.message;
 
       if (message.exception)
         stringLog += message.stackTrace + "\n";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firetray.git



More information about the Pkg-mozext-commits mailing list