dovecot-2.2: fts-tika: Hiden "Unsupported Media Type" errors. Lo...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 30 14:26:27 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/2c2b94840ff3
changeset: 17545:2c2b94840ff3
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 30 17:25:02 2014 +0300
description:
fts-tika: Hiden "Unsupported Media Type" errors. Log HTTP status code on errors.

diffstat:

 src/plugins/fts/fts-parser-tika.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 49dfc6da1786 -r 2c2b94840ff3 src/plugins/fts/fts-parser-tika.c
--- a/src/plugins/fts/fts-parser-tika.c	Mon Jun 30 16:41:32 2014 +0300
+++ b/src/plugins/fts/fts-parser-tika.c	Mon Jun 30 17:25:02 2014 +0300
@@ -92,18 +92,19 @@
 		}
 		break;
 	case 204: /* empty response */
+	case 415: /* Unsupported Media Type */
 	case 422: /* Unprocessable Entity */
 		if (parser->user->mail_debug) {
-			i_debug("fts_tika: PUT %s failed: %s",
+			i_debug("fts_tika: PUT %s failed: %u %s",
 				mail_user_plugin_getenv(parser->user, "fts_tika"),
-				response->reason);
+				response->status, response->reason);
 		}
 		parser->payload = i_stream_create_from_data("", 0);
 		break;
 	default:
-		i_error("fts_tika: PUT %s failed: %s",
+		i_error("fts_tika: PUT %s failed: %u %s",
 			mail_user_plugin_getenv(parser->user, "fts_tika"),
-			response->reason);
+			response->status, response->reason);
 		parser->failed = TRUE;
 		break;
 	}


More information about the dovecot-cvs mailing list