summaryrefslogtreecommitdiff
path: root/giscanner/scannermain.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-01-06 18:20:49 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2019-01-10 09:08:15 +0100
commit06a460b3487ad58cc941169481cce073e2a196cc (patch)
tree1e64c49a26458a0536f5124460b39b199ddda42f /giscanner/scannermain.py
parent9826d952358c8330d72ecba062f489fbdc31bbd1 (diff)
downloadgobject-introspection-06a460b3487ad58cc941169481cce073e2a196cc.tar.gz
message: simplify handling of error levels
Instead of allowing each error level to be enabled just enable all of them through the enable_warnings() method. This matches what the code is currently doing (minus that one helper script) and simplifies things. Also remove the error count, it's not used.
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r--giscanner/scannermain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 264bd517..c004fb19 100644
--- a/giscanner/scannermain.py
+++ b/giscanner/scannermain.py
@@ -550,7 +550,7 @@ def scanner_main(args):
namespace = create_namespace(options)
logger = message.MessageLogger.get(namespace=namespace)
if options.warn_all:
- logger.enable_warnings((message.WARNING, message.ERROR, message.FATAL))
+ logger.enable_warnings(True)
transformer = create_transformer(namespace, options)