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:
@@ -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
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -245,10 +245,13 @@ public class MessageManager
|
|||||||
// if we were unable even to find a default bundle, we've
|
// if we were unable even to find a default bundle, we've
|
||||||
// got real problems. time to freak out
|
// got real problems. time to freak out
|
||||||
Log.warning("Unable to resolve any message bundle " +
|
Log.warning("Unable to resolve any message bundle " +
|
||||||
"[bundlePath=" + bundlePath +
|
"[req=" + req.getRequestURI() +
|
||||||
", siteBundlePath=" + _siteBundlePath +
|
|
||||||
", locale=" + req.getLocale() +
|
", 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
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// 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
|
* 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
|
* 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;
|
protected JarFile _jarFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user