Skip to content

Commit

Permalink
Improve waf debugging
Browse files Browse the repository at this point in the history
* Add debug statement to see the inputs being passed between rules.
* Modify globitool to set the Logger verbosity level based on the waf
  verbosity level.

Type: Code Improvement
Signed-off-by: Daniel Kristensen <[email protected]>
  • Loading branch information
Daniel Kristensen committed Feb 11, 2019
1 parent d891e63 commit b03dd66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions GlobifestLib/Importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,4 +411,5 @@ def setup(self, out_dir):
inputs = []
for a in self.actions:
inputs = a.run(self, inputs)
Log.D(" => {}".format(inputs))
_SetupCompleteAction(cache_file_contents).run(self)
2 changes: 2 additions & 0 deletions waf/globitool.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def __init__(self, bld, kwargs):

def run(self):
"""Build the project configuration and add taskgens"""
Globitool.GlobifestLib.Log.Logger.set_level(Logs.verbose)

# Set up callbacks for Builder
callbacks = Globitool.GlobifestLib.Util.Container(
prebuild=Globitool._callback_prebuild,
Expand Down

0 comments on commit b03dd66

Please sign in to comment.