1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-14 11:42:23 -05:00

Caldav: improve broken events logging

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@938 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-02-03 22:00:14 +00:00
parent f2e862f659
commit c9dc4de5ef
3 changed files with 4 additions and 4 deletions

View File

@ -608,8 +608,8 @@ public class CaldavConnection extends AbstractConnection {
for (String href : request.getHrefs()) { for (String href : request.getHrefs()) {
DavGatewayTray.debug(new BundleMessage("LOG_REPORT_EVENT", ++count, total)); DavGatewayTray.debug(new BundleMessage("LOG_REPORT_EVENT", ++count, total));
DavGatewayTray.switchIcon(); DavGatewayTray.switchIcon();
String eventName = getEventFileNameFromPath(href);
try { try {
String eventName = getEventFileNameFromPath(href);
// ignore cases for Sunbird // ignore cases for Sunbird
if (eventName != null && eventName.length() > 0 if (eventName != null && eventName.length() > 0
&& !"inbox".equals(eventName) && !"calendar".equals(eventName)) { && !"inbox".equals(eventName) && !"calendar".equals(eventName)) {
@ -618,7 +618,7 @@ public class CaldavConnection extends AbstractConnection {
appendEventResponse(response, request, event); appendEventResponse(response, request, event);
} }
} catch (HttpException e) { } catch (HttpException e) {
DavGatewayTray.warn(new BundleMessage("LOG_EVENT_NOT_FOUND", href)); DavGatewayTray.warn(new BundleMessage("LOG_EVENT_NOT_AVAILABLE", eventName, href));
notFound.add(href); notFound.add(href);
} }
} }

View File

@ -47,7 +47,7 @@ LOG_ERROR_LOADING_OSXADAPTER=Error while loading the OSXAdapter
LOG_ERROR_LOADING_SETTINGS=Error loading settings LOG_ERROR_LOADING_SETTINGS=Error loading settings
LOG_ERROR_RETRIEVING_MESSAGE=Error retreiving message LOG_ERROR_RETRIEVING_MESSAGE=Error retreiving message
LOG_ERROR_WAITING_FOR_SWT_INIT=Error waiting for SWT init LOG_ERROR_WAITING_FOR_SWT_INIT=Error waiting for SWT init
LOG_EVENT_NOT_FOUND=Event not found: {0} LOG_EVENT_NOT_AVAILABLE=Event {0} not available: {1}
LOG_EXCEPTION_CLOSING_CLIENT_INPUT_STREAM=Exception closing client input stream LOG_EXCEPTION_CLOSING_CLIENT_INPUT_STREAM=Exception closing client input stream
LOG_EXCEPTION_CLOSING_CLIENT_OUTPUT_STREAM=Exception closing client output stream LOG_EXCEPTION_CLOSING_CLIENT_OUTPUT_STREAM=Exception closing client output stream
LOG_EXCEPTION_CLOSING_CLIENT_SOCKET=Exception closing client socket LOG_EXCEPTION_CLOSING_CLIENT_SOCKET=Exception closing client socket

View File

@ -46,7 +46,7 @@ LOG_ERROR_LOADING_OSXADAPTER=Erreur au chargement de OSXAdapter
LOG_ERROR_LOADING_SETTINGS=Erreur de chargement de la configuration LOG_ERROR_LOADING_SETTINGS=Erreur de chargement de la configuration
LOG_ERROR_RETRIEVING_MESSAGE=Erreur lors la récupération du message LOG_ERROR_RETRIEVING_MESSAGE=Erreur lors la récupération du message
LOG_ERROR_WAITING_FOR_SWT_INIT=Erreur d''initialisation SWT LOG_ERROR_WAITING_FOR_SWT_INIT=Erreur d''initialisation SWT
LOG_EVENT_NOT_FOUND=Evenement non trouvé : {0} LOG_EVENT_NOT_AVAILABLE=Evènement {0} non disponible : {1}
LOG_EXCEPTION_CLOSING_CLIENT_INPUT_STREAM=Erreur à la fermeture du flux d''entrée client LOG_EXCEPTION_CLOSING_CLIENT_INPUT_STREAM=Erreur à la fermeture du flux d''entrée client
LOG_EXCEPTION_CLOSING_CLIENT_OUTPUT_STREAM=Erreur à la fermeture du flux de sortie client LOG_EXCEPTION_CLOSING_CLIENT_OUTPUT_STREAM=Erreur à la fermeture du flux de sortie client
LOG_EXCEPTION_CLOSING_CLIENT_SOCKET=Erreur à la fermeture de la connection client LOG_EXCEPTION_CLOSING_CLIENT_SOCKET=Erreur à la fermeture de la connection client