[MGNLMIGRATION-188] Review log strategy in the Task catch section of executeTask(... Created: 07/Dec/12  Updated: 23/Apr/13  Resolved: 19/Apr/13

Status: Closed
Project: Migration 4.4 to 4.5 (closed)
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.2.3

Type: Task Priority: Neutral
Reporter: Eric Hechinger Assignee: Robert Šiška
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLMIGRATION-173 Review informations log in the report... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty

 Description   

remove the log.error.... of the catch section of executeTask(... method.
Log should be performed by the method catching the throwed exception. Else we will log twice the exception.

FROM:
installContext.error("Unable to execute PostMigrationTask for the following module:"+getModuleName(), e);
log.error("Unable to execute PostMigrationTask for the following module:"+getModuleName(), e);
reportException(e);
throw new TaskExecutionException(e.getMessage());

TO:
installContext.error("Unable to execute PostMigrationTask for the following module:"+getModuleName(), e);
reportException(e);
throw new TaskExecutionException("Unable to handle PostMigrationTask for the following module:"+getModuleName(),e);


Generated at Mon Feb 12 10:17:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.