Blame SOURCES/nfs-utils-1.3.0-nfsdcltrack-errors.patch

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