Enhanced logging when we fail to resolve a site resource bundle.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1428 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2004-05-11 03:14:03 +00:00
parent 02b1326e4a
commit 8e06f56306
2 changed files with 25 additions and 5 deletions
@@ -1,5 +1,5 @@
//
// $Id: MessageManager.java,v 1.10 2004/01/28 00:45:05 ray Exp $
// $Id: MessageManager.java,v 1.11 2004/05/11 03:14:03 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -245,10 +245,13 @@ public class MessageManager
// if we were unable even to find a default bundle, we've
// got real problems. time to freak out
Log.warning("Unable to resolve any message bundle " +
"[bundlePath=" + bundlePath +
", siteBundlePath=" + _siteBundlePath +
"[req=" + req.getRequestURI() +
", locale=" + req.getLocale() +
", loader=" + loader + "].");
", bundlePath=" + bundlePath +
", classLoader=" + loader +
", siteBundlePath=" + _siteBundlePath +
", siteLoader=" + _siteLoader +
"].");
}
}
@@ -1,5 +1,5 @@
//
// $Id: SiteResourceLoader.java,v 1.6 2001/11/06 20:16:46 mdb Exp $
// $Id: SiteResourceLoader.java,v 1.7 2004/05/11 03:14:03 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -173,6 +173,14 @@ public class SiteResourceLoader
}
}
/**
* Returns a string representation of this instance.
*/
public String toString ()
{
return "[jarPath=" + _jarPath + "]";
}
/**
* We synchronize on a per-site basis, but we use a separate lock
* object for each site so that the process of loading a bundle for
@@ -336,6 +344,15 @@ public class SiteResourceLoader
}
}
/**
* Returns a string representation of this instance.
*/
public String toString ()
{
return "[jarFile=" + (_jarFile == null ? "<none>" :
_jarFile.getName()) + "]";
}
protected JarFile _jarFile;
}