commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] Resolved: (CONFIGURATION-232) ConfigurationUtils spews directly on std.err when exceptions
Date Fri, 22 Dec 2006 18:24:24 GMT
     [ ]

Oliver Heger resolved CONFIGURATION-232.

    Fix Version/s: Nightly Builds
       Resolution: Fixed

The printStackTrace() statements have been removed and the log messages you pointed out have
been improved. Thank you for spotting this.

> ConfigurationUtils spews directly on std.err when exceptions
> ------------------------------------------------------------
>                 Key: CONFIGURATION-232
>                 URL:
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.3 Final
>         Environment: n/a
>            Reporter: Endre StĂžlsvik
>         Assigned To: Oliver Heger
>            Priority: Minor
>             Fix For: Nightly Builds
> ConfigurationUtils:
> public static URL locate(String base, String name) {
>   3 x :
>   catch ([Malformed|IO]URLException e) {
>     e.printStackTrace();
>   }
> }
> .. say no more.
> But while we're at it, the log-message (which, for some reason, actually goes to a logger,
not uglily to the system) states "Configuration loaded from ..", which isn't true: The thing
isn't loaded yet; it will be loaded.  "Loading configuration from .." would be better, or
maybe "Will be loading configuration from ..". In addition, these log-lines could state what
was the "base", and in particular the case where it loads from "base path", the whole line
reads wrong.
> For example: "Loading configuration ["+name+"] from base path ["+base+"].." and similar
for the other lines.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message