diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-03-31 17:39:02 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-04-06 12:47:40 +0200 |
commit | 894936ce9ed3fffd42bfb4939535ae421ea12c3a (patch) | |
tree | ea6fbabbb96b0ab384dad9c233e8739a65d50eb3 /src/libhydra/plugins/attr_sql | |
parent | 8b0e09103b5e7e55b20380c44f093b1cef95480c (diff) | |
download | strongswan-894936ce9ed3fffd42bfb4939535ae421ea12c3a.tar.bz2 strongswan-894936ce9ed3fffd42bfb4939535ae421ea12c3a.tar.xz |
Replaced some DBG_LIB with more specific groups.
Diffstat (limited to 'src/libhydra/plugins/attr_sql')
-rw-r--r-- | src/libhydra/plugins/attr_sql/attr_sql_plugin.c | 4 | ||||
-rw-r--r-- | src/libhydra/plugins/attr_sql/sql_attribute.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/libhydra/plugins/attr_sql/attr_sql_plugin.c b/src/libhydra/plugins/attr_sql/attr_sql_plugin.c index 280d01d8f..70e7a2247 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(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; } diff --git a/src/libhydra/plugins/attr_sql/sql_attribute.c b/src/libhydra/plugins/attr_sql/sql_attribute.c index c328fd2b3..a7cfde649 100644 --- a/src/libhydra/plugins/attr_sql/sql_attribute.c +++ b/src/libhydra/plugins/attr_sql/sql_attribute.c @@ -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; } |