mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-04 14:52:24 -05:00
Add a few more logging statements
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2337 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
0f46596228
commit
28e9d6c55d
@ -224,8 +224,17 @@ public final class DavGatewayTray {
|
||||
* Create tray icon and register frame listeners.
|
||||
*/
|
||||
public static void init() {
|
||||
String currentDesktop = System.getenv("XDG_CURRENT_DESKTOP");
|
||||
String javaVersion = System.getProperty("java.version");
|
||||
String arch = System.getProperty("sun.arch.data.model");
|
||||
LOGGER.debug("OS Name: "+System.getProperty("os.name")+
|
||||
"Java version: "+javaVersion+((arch!=null)? ' ' +arch:"")+
|
||||
"System tray "+(SystemTray.isSupported()?"":"not ")+"supported"+
|
||||
((currentDesktop==null)?"":"Current Desktop: " + currentDesktop)
|
||||
);
|
||||
|
||||
if (!Settings.getBooleanProperty("davmail.server")) {
|
||||
// first try to load SWT before with Java
|
||||
// first try to load SWT before with Java AWT
|
||||
ClassLoader classloader = DavGatewayTray.class.getClassLoader();
|
||||
try {
|
||||
// trigger ClassNotFoundException
|
||||
@ -283,6 +292,9 @@ public final class DavGatewayTray {
|
||||
try {
|
||||
ClassLoader classloader = DavGatewayTray.class.getClassLoader();
|
||||
URL imageUrl = classloader.getResource(fileName);
|
||||
if (imageUrl == null) {
|
||||
throw new IOException("Missing resource: "+fileName);
|
||||
}
|
||||
result = ImageIO.read(imageUrl);
|
||||
} catch (IOException e) {
|
||||
DavGatewayTray.warn(new BundleMessage("LOG_UNABLE_TO_LOAD_IMAGE"), e);
|
||||
|
Loading…
Reference in New Issue
Block a user