even more access.log improvements
Costa Tsaousis (ktsaou) committed
Sep 17, 2017 at 16:09 UTC
2f519b8b17f9637dc3575ec6762505b9f4923e28
2 files changed
+4
-2
src/rrdpush.c
+1
-1
@@ -699,7 +699,7 @@ static int rrdpush_receive(int fd, const char *key, const char *hostname, const
699
700
// call the plugins.d processor to receive the metrics
701
info("STREAM %s [receive from [%s]:%s]: receiving metrics...", host->hostname, client_ip, client_port);
702
- log_stream_connection(client_ip, client_port, key, host->hostname, "ACCESS GRANDED");
702
+ log_stream_connection(client_ip, client_port, key, host->hostname, "CONNECTED");
703
704
size_t count = pluginsd_process(host, &cd, fp, 1);
705
src/web_client.c
+3
-1
@@ -1760,9 +1760,11 @@ void *web_client_main(void *ptr)
1760
}
1761
}
1762
1763
+ if(w->mode != WEB_CLIENT_MODE_STREAM)
1764
+ log_connection(w, "DISCONNECTED");
1765
+
1766
web_client_reset(w);
1767
1765
- log_connection(w, "DISCONNECTED");
1768
debug(D_WEB_CLIENT, "%llu: done...", w->id);
1769
1770
// close the sockets/files now