Adds legacy protocol deprecation banner to agent log (#12065)
* Add legacy protocol deprecation banner to agent log
Timotej S committed
Feb 11, 2022 at 12:19 UTC
95446504e3f1263cda5ff72455b008b947730157
1 file changed
+10
aclk/aclk.c
+10
@@ -819,6 +819,16 @@ void *aclk_main(void *ptr)
819
if (aclk_attempt_to_connect(mqttwss_client))
820
goto exit_full;
821
822
+#if defined(ENABLE_ACLK) && !defined(ENABLE_NEW_CLOUD_PROTOCOL)
823
+ error_report("############################ WARNING ###############################");
824
+ error_report("# Your agent is configured to connect to cloud but has #");
825
+ error_report("# no protobuf protocol support (uses legacy JSON protocol) #");
826
+ error_report("# Legacy protocol will be deprecated soon (planned 1st March 2022) #");
827
+ error_report("# Visit following link for more info and instructions how to solve #");
828
+ error_report("# https://www.netdata.cloud/blog/netdata-clouds-new-architecture #");
829
+ error_report("######################################################################");
830
+#endif
831
+
832
// warning this assumes the popcorning is relative short (3s)
833
// if that changes call mqtt_wss_service from within
834
// to keep OpenSSL, WSS and MQTT connection alive