#include <haproxy/sample.h>
#include <haproxy/server-t.h>
#include <haproxy/session.h>
+#include <haproxy/sink.h>
#include <haproxy/tools.h>
struct fcgi_app *curapp;
struct proxy *px;
struct server *srv;
+ struct logsrv *logsrv;
int err_code = 0;
for (px = proxies_list; px; px = px->next) {
}
curapp->maxreqs = 1;
}
+
+ list_for_each_entry(logsrv, &curapp->logsrvs, list) {
+ if (logsrv->type == LOG_TARGET_BUFFER) {
+ struct sink *sink = sink_find(logsrv->ring_name);
+
+ if (!sink || sink->type != SINK_TYPE_BUFFER) {
+ ha_alert("config : fcgi-app '%s' : log server uses unkown ring named '%s'.\n",
+ curapp->name, logsrv->ring_name);
+ err_code |= ERR_ALERT | ERR_FATAL;
+ }
+ logsrv->sink = sink;
+ }
+ }
}
end: