Bug 1067020 - Some serious logs don't support localization - patching
Summary: Some serious logs don't support localization - patching
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Patching
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ER2
: EAP 6.3.0
Assignee: Emanuel Muckenhuber
QA Contact: Nikoleta Hlavickova
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-19 14:20 UTC by Nikoleta Hlavickova
Modified: 2015-02-01 23:05 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-28 15:25:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nikoleta Hlavickova 2014-02-19 14:20:07 UTC
There are some serious log messages which don't support localization:

jboss-eap-6.3-src/patching/src/main/java/org/jboss/as/patching/validation/PatchArtifact.java
102   ctx.getErrorHandler().error("Failed to load identity info for patch " + patch.getPatchId(), e);
116   ctx.getErrorHandler().error("Failed to load previous patch", e);

jboss-eap-6.3-src/patching/src/main/java/org/jboss/as/patching/validation/XmlFileState.java
51   ctx.getErrorHandler().error("File doesn't exist: " + file.getAbsolutePath());
56   ctx.getErrorHandler().error("Failed to parse file: " + file.getAbsolutePath(), e);

jboss-eap-6.3-src/patching/src/main/java/org/jboss/as/patching/validation/PatchElementProviderArtifact.java
84   ctx.getErrorHandler().error("Layer not found: " + metadata.getName());

jboss-eap-6.3-src/patching/src/main/java/org/jboss/as/patching/runner/IdentityPatchContext.java
435   PatchLogger.ROOT_LOGGER.warnf(e, "failed to undo change (%s)", modification);

Comment 1 Emanuel Muckenhuber 2014-02-19 14:28:12 UTC
The validation classes are not used yet. However the last one does need i18n for sure. Thanks

Comment 2 Jan Martiska 2014-04-09 11:58:37 UTC
After a discussion with Emanuel, we agreed to remove the logs even though they are not used.

Comment 3 Emanuel Muckenhuber 2014-04-09 13:45:48 UTC
To simplify the verification process, I explicitly marked the messages which don't require i18n in the source code with: no i18n needed.

Unfortunately those messages cannot be easily removed, since the tests are relying on that logic to verify the functionality.

Comment 4 Nikoleta Hlavickova 2014-04-24 10:38:46 UTC
Verified with EAP 6.3.0 ER2


Note You need to log in before you can comment on or make changes to this bug.