|
|
fc3648 |
commit 06bbb4ee6f5186e8e83d50767ad5b3b41968e5a6
|
|
|
fc3648 |
Author: Jeff Layton <jlayton@redhat.com>
|
|
|
fc3648 |
Date: Wed Apr 26 12:13:50 2017 -0400
|
|
|
fc3648 |
|
|
|
fc3648 |
nfsdcltrack: silence some expected errors
|
|
|
fc3648 |
|
|
|
fc3648 |
On a new install, we're unable to select from the parameters table, as
|
|
|
fc3648 |
it doesn't exist yet. The code is set up to log that fact at L_ERROR
|
|
|
fc3648 |
now, but it's an expected situation. Change it to log that at D_GENERAL
|
|
|
fc3648 |
instead.
|
|
|
fc3648 |
|
|
|
fc3648 |
Reported-and-Tested-by: ChunYu Wang <chunwang@redhat.com>
|
|
|
fc3648 |
Signed-off-by: Jeff Layton <jlayton@redhat.com>
|
|
|
fc3648 |
Signed-off-by: Steve Dickson <steved@redhat.com>
|
|
|
fc3648 |
|
|
|
fc3648 |
diff --git a/utils/nfsdcltrack/sqlite.c b/utils/nfsdcltrack/sqlite.c
|
|
|
fc3648 |
index 54cd748..1552eba 100644
|
|
|
fc3648 |
--- a/utils/nfsdcltrack/sqlite.c
|
|
|
fc3648 |
+++ b/utils/nfsdcltrack/sqlite.c
|
|
|
fc3648 |
@@ -101,7 +101,7 @@ sqlite_query_schema_version(void)
|
|
|
fc3648 |
"SELECT value FROM parameters WHERE key == \"version\";",
|
|
|
fc3648 |
-1, &stmt, NULL);
|
|
|
fc3648 |
if (ret != SQLITE_OK) {
|
|
|
fc3648 |
- xlog(L_ERROR, "Unable to prepare select statement: %s",
|
|
|
fc3648 |
+ xlog(D_GENERAL, "Unable to prepare select statement: %s",
|
|
|
fc3648 |
sqlite3_errmsg(dbh));
|
|
|
fc3648 |
ret = 0;
|
|
|
fc3648 |
goto out;
|
|
|
fc3648 |
@@ -110,7 +110,7 @@ sqlite_query_schema_version(void)
|
|
|
fc3648 |
/* query schema version */
|
|
|
fc3648 |
ret = sqlite3_step(stmt);
|
|
|
fc3648 |
if (ret != SQLITE_ROW) {
|
|
|
fc3648 |
- xlog(L_ERROR, "Select statement execution failed: %s",
|
|
|
fc3648 |
+ xlog(D_GENERAL, "Select statement execution failed: %s",
|
|
|
fc3648 |
sqlite3_errmsg(dbh));
|
|
|
fc3648 |
ret = 0;
|
|
|
fc3648 |
goto out;
|