Replaced some DBG_LIB with more specific groups.
This commit is contained in:
@@ -174,7 +174,7 @@ static void load_entries(private_attr_provider_t *this)
|
||||
host = host_create_from_string(token, 0);
|
||||
if (!host)
|
||||
{
|
||||
DBG1(DBG_LIB, "invalid host in key %s: %s", key, token);
|
||||
DBG1(DBG_CFG, "invalid host in key %s: %s", key, token);
|
||||
continue;
|
||||
}
|
||||
if (!type)
|
||||
@@ -195,7 +195,7 @@ static void load_entries(private_attr_provider_t *this)
|
||||
}
|
||||
if (!type)
|
||||
{
|
||||
DBG1(DBG_LIB, "mapping attribute type %s failed", key);
|
||||
DBG1(DBG_CFG, "mapping attribute type %s failed", key);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ plugin_t *attr_sql_plugin_create()
|
||||
uri = lib->settings->get_str(lib->settings, "libhydra.plugins.attr-sql.database", NULL);
|
||||
if (!uri)
|
||||
{
|
||||
DBG1(DBG_LIB, "attr-sql plugin: database URI not set");
|
||||
DBG1(DBG_CFG, "attr-sql plugin: database URI not set");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ plugin_t *attr_sql_plugin_create()
|
||||
this->db = lib->db->create(lib->db, uri);
|
||||
if (!this->db)
|
||||
{
|
||||
DBG1(DBG_LIB, "attr-sql plugin failed to connect to database");
|
||||
DBG1(DBG_CFG, "attr-sql plugin failed to connect to database");
|
||||
free(this);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ static host_t* check_lease(private_sql_attribute_t *this, char *name,
|
||||
host = host_create_from_chunk(AF_UNSPEC, address, 0);
|
||||
if (host)
|
||||
{
|
||||
DBG1(DBG_LIB, "acquired existing lease for address %H in"
|
||||
DBG1(DBG_CFG, "acquired existing lease for address %H in"
|
||||
" pool '%s'", host, name);
|
||||
return host;
|
||||
}
|
||||
@@ -202,13 +202,13 @@ static host_t* get_lease(private_sql_attribute_t *this, char *name,
|
||||
host = host_create_from_chunk(AF_UNSPEC, address, 0);
|
||||
if (host)
|
||||
{
|
||||
DBG1(DBG_LIB, "acquired new lease for address %H in pool '%s'",
|
||||
DBG1(DBG_CFG, "acquired new lease for address %H in pool '%s'",
|
||||
host, name);
|
||||
return host;
|
||||
}
|
||||
}
|
||||
}
|
||||
DBG1(DBG_LIB, "no available address found in pool '%s'", name);
|
||||
DBG1(DBG_CFG, "no available address found in pool '%s'", name);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user