mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
settings: Reduce log verbosity if strongswan.conf does not exist
In some situations we expect strongswan.conf to not exist, for instance, when running the unit tests before installation.
This commit is contained in:
parent
a800253fbf
commit
2a38b4556e
@ -1224,7 +1224,16 @@ static bool parse_file(linked_list_t *contents, char *file, int level,
|
||||
{
|
||||
if (errno == ENOENT)
|
||||
{
|
||||
DBG1(DBG_LIB, "'%s' does not exist, ignored", file);
|
||||
#ifdef STRONGSWAN_CONF
|
||||
if (streq(file, STRONGSWAN_CONF))
|
||||
{
|
||||
DBG2(DBG_LIB, "'%s' does not exist, ignored", file);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
{
|
||||
DBG1(DBG_LIB, "'%s' does not exist, ignored", file);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
DBG1(DBG_LIB, "failed to stat '%s': %s", file, strerror(errno));
|
||||
|
Loading…
x
Reference in New Issue
Block a user