summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/db.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/util/db.c b/util/db.c
index 9f93269..b08457b 100644
--- a/util/db.c
+++ b/util/db.c
@@ -321,11 +321,8 @@ static int __interp_db(struct ulogd_pluginstance *upi)
/* now we have created our statement, insert it */
- if (di->driver->execute(upi, di->stmt, strlen(di->stmt)) < 0) {
- ulogd_log(ULOGD_ERROR, "sql error during insert: %s\n",
- di->driver->strerror(upi));
+ if (di->driver->execute(upi, di->stmt, strlen(di->stmt)) < 0)
return _init_db(upi);
- }
return 0;
}