summaryrefslogtreecommitdiff
path: root/giscanner/message.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-07 09:52:54 -0400
committerColin Walters <walters@verbum.org>2010-09-07 10:22:23 -0400
commit4905b753cbad546875616eae13918eca539680c9 (patch)
treef251134c64683fadf1774d230e17056130b34c1f /giscanner/message.py
parent2eb614e805311841e17fd4dbe76aa70443f3a911 (diff)
downloadgobject-introspection-4905b753cbad546875616eae13918eca539680c9.tar.gz
scanner: Add various static debug hooks in GI_SCANNER_DEBUG
For backwards compat, keep the presence of the environment variable at all to mean "exception". Also start a HACKING file.
Diffstat (limited to 'giscanner/message.py')
-rw-r--r--giscanner/message.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/message.py b/giscanner/message.py
index 7644c1ea..a522b75c 100644
--- a/giscanner/message.py
+++ b/giscanner/message.py
@@ -24,6 +24,7 @@ import os
import sys
from . import ast
+from . import utils
(WARNING,
ERROR,
@@ -56,6 +57,8 @@ class MessageLogger(object):
def log(self, log_type, text, file_positions=None, prefix=None):
"""Log a warning, using optional file positioning information.
If the warning is related to a ast.Node type, see log_node_warning()."""
+ utils.break_on_debug_flag('warning')
+
if not self._enable_warnings:
return