@cryptotaxi247 / netdata-1 / commits / 7ad2b63ba

apps.plugin logs NETDATA_HOST_PREFIX variable #43

Costa Tsaousis (ktsaou) committed Jan 12, 2016 at 00:56 UTC 7ad2b63ba89f241dce603320212a21749ecd8d1b
1 file changed +5 -1
src/apps_plugin.c
+5 -1
@@ -1919,7 +1919,11 @@ int main(int argc, char **argv)
1919 program_name = "apps.plugin";
1920
1921 host_prefix = getenv("NETDATA_HOST_PREFIX");
1922 - if(host_prefix == NULL) host_prefix = "";
1922 + if(host_prefix == NULL) {
1923 + info("NETDATA_HOST_PREFIX is not passed from netdata");
1924 + host_prefix = "";
1925 + }
1926 + else info("Found NETDATA_HOST_PREFIX='%s'", host_prefix);
1927
1928 info("starting...");
1929