Commits

Aristarkh Zagorodnikov committed c1d4fd4

Fixed error logging for certain cases

Comments (0)

Files changed (1)

gridfs/mod_gridfs.cpp

 					if (content_length != file_length)
 					{
 						connection->done();
-						ap_log_rerror(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, result, request, "mod_gridfs: Mismatching files/chunks length for file '%s' (difference: %d, database: '%s').", filename, static_cast<int>(file_length - content_length), database.c_str());
+						ap_log_rerror(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, 0, request, "mod_gridfs: Mismatching files/chunks length for file '%s' (difference: %d, database: '%s').", filename, static_cast<int>(file_length - content_length), database.c_str());
 						return HTTP_INTERNAL_SERVER_ERROR;
 					}
 				}
 				case 10009:	//	ReplicaSetMonitor no master found for set
 				case 10276:	//	DBClientBase::findN: transport error
 				case 11002:	//	pool socket exception
-					ap_log_rerror(APLOG_MARK, APLOG_WARNING | APLOG_NOERRNO, result, request, "mod_gridfs: Retrying after MongoDB exception for file '%s' (code: %d, database: '%s'): %s.", filename, code, database.c_str(), exception.what()); 
+					ap_log_rerror(APLOG_MARK, APLOG_WARNING | APLOG_NOERRNO, 0, request, "mod_gridfs: Retrying after MongoDB exception for file '%s' (code: %d, database: '%s'): %s.", filename, code, database.c_str(), exception.what()); 
 					break;
 
 				default: