projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
084561b
)
oracle plugin: Report the "connect id" when OCILogon() fails.
author
Florian Forster
<octo@collectd.org>
Mon, 18 Jun 2012 08:49:38 +0000
(10:49 +0200)
committer
Florian Forster
<octo@collectd.org>
Mon, 18 Jun 2012 08:49:38 +0000
(10:49 +0200)
src/oracle.c
patch
|
blob
|
history
diff --git
a/src/oracle.c
b/src/oracle.c
index
4c85e29
..
79725d7
100644
(file)
--- a/
src/oracle.c
+++ b/
src/oracle.c
@@
-702,7
+702,11
@@
static int o_read_database (o_database_t *db) /* {{{ */
(OraText *) db->connect_id, (ub4) strlen (db->connect_id));
if ((status != OCI_SUCCESS) && (status != OCI_SUCCESS_WITH_INFO))
{
(OraText *) db->connect_id, (ub4) strlen (db->connect_id));
if ((status != OCI_SUCCESS) && (status != OCI_SUCCESS_WITH_INFO))
{
- o_report_error ("o_read_database", "OCILogon", oci_error);
+ char errfunc[256];
+
+ ssnprintf (errfunc, sizeof (errfunc), "OCILogon(\"%s\")", db->connect_id);
+
+ o_report_error ("o_read_database", errfunc, oci_error);
DEBUG ("oracle plugin: OCILogon (%s): db->oci_service_context = %p;",
db->connect_id, db->oci_service_context);
db->oci_service_context = NULL;
DEBUG ("oracle plugin: OCILogon (%s): db->oci_service_context = %p;",
db->connect_id, db->oci_service_context);
db->oci_service_context = NULL;