Skip to content

Commit fc98b33

Browse files
committed
Add debug info
1 parent a77028b commit fc98b33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

jdi-light-core/src/main/java/com/epam/jdi/light/actions/ActionHelper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ public static RuntimeException actionFailed(ActionObject jInfo, Throwable ex) {
416416
public static JFunc2<ActionObject, Throwable, RuntimeException> ACTION_FAILED = ActionHelper::actionFailed;
417417

418418
public static void logFailure(ActionObject jInfo, Throwable ex) {
419-
logger.error("!>>> " + jInfo.object().toString());
420419
if (ObjectUtils.isNotEmpty(ELEMENT.highlight) && !ELEMENT.highlight.contains(HighlightStrategy.OFF)) {
421420
if (ELEMENT.highlight.contains(HighlightStrategy.FAIL)) {
422421
try {
@@ -427,7 +426,7 @@ public static void logFailure(ActionObject jInfo, Throwable ex) {
427426
showElement(jInfo);
428427
AllureLogData logData = logDataToAllure(FAIL,
429428
"Failed" + capitalize(jInfo.methodName()), jInfo.isAssert());
430-
logger.error("Failed" + capitalize(jInfo.methodName()), ex);
429+
logger.error("!>>> " + jInfo.object().toString() + " Failed " + capitalize(jInfo.methodName()), ex);
431430
failStep(jInfo.stepUId, logData);
432431
}
433432

0 commit comments

Comments
 (0)