aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-07-27 15:51:58 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-07-27 15:51:58 -0400
commit0262a70bd881f1c8370a07fcae725e96ea3a2a7c (patch)
tree40b30fc0a07b94138aac320b85208f003810d3a0
parent9e95d523c9b936ecda8ac842dc520b54d1706ff2 (diff)
downloadb4-0262a70bd881f1c8370a07fcae725e96ea3a2a7c.tar.gz
ez: tell us where we got current strategy
When getting strategy from branch configs, tell us that it's where it came from. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/ez.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/b4/ez.py b/b4/ez.py
index 8d4961a..06dfca4 100644
--- a/b4/ez.py
+++ b/b4/ez.py
@@ -390,6 +390,7 @@ def get_cover_strategy(branch: Optional[str] = None) -> str:
bconfig = b4.get_config_from_git(rf'branch\.{branch}\..*')
if 'b4-prep-cover-strategy' in bconfig:
strategy = bconfig.get('b4-prep-cover-strategy')
+ logger.debug('Got strategy=%s from branch-config', strategy)
else:
config = b4.get_main_config()
strategy = config.get('prep-cover-strategy', 'commit')