aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/attr_sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/libhydra/plugins/attr_sql')
-rw-r--r--src/libhydra/plugins/attr_sql/attr_sql_plugin.c4
-rw-r--r--src/libhydra/plugins/attr_sql/sql_attribute.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/libhydra/plugins/attr_sql/attr_sql_plugin.c b/src/libhydra/plugins/attr_sql/attr_sql_plugin.c
index 632bd35a4..280d01d8f 100644
--- a/src/libhydra/plugins/attr_sql/attr_sql_plugin.c
+++ b/src/libhydra/plugins/attr_sql/attr_sql_plugin.c
@@ -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("attr-sql plugin: database URI not set");
+ DBG1(DBG_LIB, "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("attr-sql plugin failed to connect to database");
+ DBG1(DBG_LIB, "attr-sql plugin failed to connect to database");
free(this);
return NULL;
}
diff --git a/src/libhydra/plugins/attr_sql/sql_attribute.c b/src/libhydra/plugins/attr_sql/sql_attribute.c
index 9a2108ed2..c328fd2b3 100644
--- a/src/libhydra/plugins/attr_sql/sql_attribute.c
+++ b/src/libhydra/plugins/attr_sql/sql_attribute.c
@@ -127,8 +127,8 @@ static host_t* check_lease(private_sql_attribute_t *this, char *name,
host = host_create_from_chunk(AF_UNSPEC, address, 0);
if (host)
{
- DBG1("acquired existing lease for address %H in pool '%s'",
- host, name);
+ DBG1(DBG_LIB, "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("acquired new lease for address %H in pool '%s'",
+ DBG1(DBG_LIB, "acquired new lease for address %H in pool '%s'",
host, name);
return host;
}
}
}
- DBG1("no available address found in pool '%s'", name);
+ DBG1(DBG_LIB, "no available address found in pool '%s'", name);
return NULL;
}