Skip to content

Commit ee90434

Browse files
author
Vladimir Kotal
committed
report project, set log level for induced break to DEBUG
1 parent e5af797 commit ee90434

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

opengrok-tools/src/main/python/opengrok_tools/utils/commandsequence.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,14 @@ def run(self):
139139
# If a command fails, terminate the sequence of commands.
140140
if retcode != 0:
141141
if retcode == 2:
142-
self.logger.info("command '{}' requested break".
143-
format(command))
142+
self.logger.debug("command '{}' for project {} "
143+
"requested break".
144+
format(self.name, command))
144145
self.run_cleanup()
145146
else:
146-
self.logger.info("command '{}' failed with code {}, "
147-
"breaking".format(command, retcode))
147+
self.logger.error("command '{}' for project {} failed "
148+
"with code {}, breaking".
149+
format(command, self.name, retcode))
148150
self.failed = True
149151
self.run_cleanup()
150152
break

0 commit comments

Comments
 (0)