fixed error log message to use the key (was using the machine_guid by mistake)
Jason Priebe committed
Jun 20, 2017 at 09:47 UTC
9413e17bae201fe21bf6030f292b3623a82b7080
1 file changed
+1
-1
src/rrdpush.c
+1
-1
@@ -781,7 +781,7 @@ int rrdpush_receiver_thread_spawn(RRDHOST *host, struct web_client *w, char *url
781
}
782
783
if(!appconfig_get_boolean(&stream_config, key, "enabled", 0)) {
784
- error("STREAM [receive from [%s]:%s]: API key '%s' is not allowed. Forbidding access.", w->client_ip, w->client_port, machine_guid);
784
+ error("STREAM [receive from [%s]:%s]: API key '%s' is not allowed. Forbidding access.", w->client_ip, w->client_port, key);
785
buffer_flush(w->response.data);
786
buffer_sprintf(w->response.data, "Your API key is not permitted access.");
787
return 401;