]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpcli: display a warning when a configuration file is not found
authorVincent Bernat <vincent@bernat.im>
Wed, 19 Aug 2015 15:11:26 +0000 (17:11 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 19 Aug 2015 15:12:43 +0000 (17:12 +0200)
Otherwise, the output of lldpcli would look pretty empty.

src/client/lldpcli.c

index a0b1d7a4866f2e4352f6a8e30d1901c518ec21eb..38e73541a374a9ee55b8e39959a351f1de061c7c 100644 (file)
@@ -385,7 +385,7 @@ input_append(const char *arg, struct inputs *inputs, int acceptdir)
 {
        struct stat statbuf;
        if (stat(arg, &statbuf) == -1) {
-               log_info("lldpctl", "cannot find configuration file/directory %s",
+               log_warn("lldpctl", "cannot find configuration file/directory %s",
                    arg);
                return;
        }