diff options
author | Johan Dahlin <johan@gnome.org> | 2010-09-02 11:44:47 -0300 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2010-09-02 12:37:55 -0300 |
commit | ca0733f019a4a9c9364b376b37b268ce3a096faa (patch) | |
tree | 277ad9d860663c8ed2425fbd61167dbb0e07b5a1 /giscanner/scannermain.py | |
parent | 1dd0fcec1d80aa1c586044065ec320f82d542de2 (diff) | |
download | gobject-introspection-ca0733f019a4a9c9364b376b37b268ce3a096faa.tar.gz |
[scanner] Remove old logging functions
And migrate over to using the message logger
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index ea1299e7..bf2af396 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -265,8 +265,9 @@ def scanner_main(args): options.namespace_version, identifier_prefixes=identifier_prefixes, symbol_prefixes=symbol_prefixes) - message.MessageLogger.get(namespace=namespace, - enable_warnings=options.warn_all) + logger = message.MessageLogger.get(namespace=namespace) + if options.warn_all: + logger.enable_warnings(True) transformer = Transformer(namespace, accept_unprefixed=options.accept_unprefixed) transformer.set_include_paths(options.include_paths) @@ -328,7 +329,7 @@ def scanner_main(args): final = IntrospectablePass(transformer) final.validate() - if options.warn_fatal and transformer.did_warn(): + if options.warn_fatal and logger.did_warn(): message.fatal("warnings configured as fatal") return 1 |