ifupdown: downgrade warning about missing /etc/network/interfaces file

I don't think this warrants a warning. It's important to keep the number
of warnings and errors in the log low, and only print such messages if
there is really something that requires attention by the user. If you
run without /etc/network/interfaces, then this is pretty much expected
and the warning isn't going to tell you anything useful.
This commit is contained in:
Thomas Haller 2021-09-16 08:33:53 +02:00
parent 6b92c89486
commit c2ab21a1b9
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -112,7 +112,7 @@ _recursive_ifparser(if_parser *parser, const char *eni_file, int quiet)
/* Check if interfaces file exists and open it */
if (!g_file_test(eni_file, G_FILE_TEST_EXISTS)) {
if (!quiet)
_LOGW("interfaces file %s doesn't exist", eni_file);
_LOGI("interfaces file %s doesn't exist", eni_file);
return;
}
inp = fopen(eni_file, "re");