]> arthur.barton.de Git - netdata.git/commitdiff
apps.plugin logs NETDATA_HOST_PREFIX variable #43
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 11 Jan 2016 22:56:01 +0000 (00:56 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Mon, 11 Jan 2016 22:56:01 +0000 (00:56 +0200)
src/apps_plugin.c

index 86827648449dc2303d71c7b0229aed5fdde2dac8..15afe232caa96231c4c7ed738bb374ae926aa25d 100755 (executable)
@@ -1919,7 +1919,11 @@ int main(int argc, char **argv)
        program_name = "apps.plugin";
 
        host_prefix = getenv("NETDATA_HOST_PREFIX");
-       if(host_prefix == NULL) host_prefix = "";
+       if(host_prefix == NULL) {
+               info("NETDATA_HOST_PREFIX is not passed from netdata");
+               host_prefix = "";
+       }
+       else info("Found NETDATA_HOST_PREFIX='%s'", host_prefix);
 
        info("starting...");