Skip to content

Commit 7234b84

Browse files
committed
Remove leading underscores from logged step name
1 parent cbed99a commit 7234b84

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

easybuild/framework/easyblock.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3382,10 +3382,12 @@ def run_step(self, step, step_methods):
33823382
run_hook(step, self.hooks, pre_step_hook=True, args=[self])
33833383

33843384
for step_method in step_methods:
3385-
self.log.info("Running method %s part of step %s" % (extract_method_name(step_method), step))
3385+
# Remove leading underscore from e.g. "_test_step"
3386+
method_name = extract_method_name(step_method).lstrip('_')
3387+
self.log.info("Running method %s part of step %s" % (method_name, step))
33863388

33873389
if self.dry_run:
3388-
self.dry_run_msg("[%s method]", step_method(self).__name__)
3390+
self.dry_run_msg("[%s method]", method_name)
33893391

33903392
# if an known possible error occurs, just report it and continue
33913393
try:

0 commit comments

Comments
 (0)