[gobject-introspection] giscanner.message: Don't print node as the default context



commit e8a7fbee3bb652159b81771ec16eab938ff84793
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date:   Mon Oct 5 21:41:58 2015 +0300

    giscanner.message: Don't print node as the default context
    
    Node is always present in the output of .log_node(), so printing it
    another time as context just adds noise.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756088

 giscanner/message.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/giscanner/message.py b/giscanner/message.py
index e79a813..0237789 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -192,9 +192,7 @@ class MessageLogger(object):
         elif context and context.file_positions:
             positions = context.file_positions
         else:
-            positions = []
-            if not context:
-                text = "context=%r %s" % (node, text)
+            positions = set()
 
         if context:
             text = "%s: %s" % (getattr(context, 'symbol', context.name), text)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]