mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-15 16:48:22 -04:00
[db] Silence misleading log error message
We were logging a missing lastfm_sk in the admin table as an error, which it really isn't
This commit is contained in:
parent
1da7230e37
commit
50c6d3f272
10
src/db.c
10
src/db.c
@ -3868,7 +3868,7 @@ admin_get(const char *key, short type, void *value)
|
|||||||
ret = db_blocking_prepare_v2(query, strlen(query) + 1, &stmt, NULL);
|
ret = db_blocking_prepare_v2(query, strlen(query) + 1, &stmt, NULL);
|
||||||
if (ret != SQLITE_OK)
|
if (ret != SQLITE_OK)
|
||||||
{
|
{
|
||||||
DPRINTF(E_WARN, L_DB, "Could not prepare statement: %s\n", sqlite3_errmsg(hdl));
|
DPRINTF(E_LOG, L_DB, "Could not prepare statement: %s\n", sqlite3_errmsg(hdl));
|
||||||
|
|
||||||
sqlite3_free(query);
|
sqlite3_free(query);
|
||||||
return -1;
|
return -1;
|
||||||
@ -3880,7 +3880,7 @@ admin_get(const char *key, short type, void *value)
|
|||||||
if (ret == SQLITE_DONE)
|
if (ret == SQLITE_DONE)
|
||||||
DPRINTF(E_DBG, L_DB, "No results\n");
|
DPRINTF(E_DBG, L_DB, "No results\n");
|
||||||
else
|
else
|
||||||
DPRINTF(E_WARN, L_DB, "Could not step: %s\n", sqlite3_errmsg(hdl));
|
DPRINTF(E_LOG, L_DB, "Could not step: %s\n", sqlite3_errmsg(hdl));
|
||||||
|
|
||||||
sqlite3_finalize(stmt);
|
sqlite3_finalize(stmt);
|
||||||
sqlite3_free(query);
|
sqlite3_free(query);
|
||||||
@ -3942,7 +3942,7 @@ db_admin_get(const char *key)
|
|||||||
ret = admin_get(key, DB_TYPE_STRING, &value);
|
ret = admin_get(key, DB_TYPE_STRING, &value);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_DB, "Error reading admin value: %s\n", key);
|
DPRINTF(E_DBG, L_DB, "Could not find key '%s' in admin table\n", key);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3958,7 +3958,7 @@ db_admin_getint(const char *key)
|
|||||||
ret = admin_get(key, DB_TYPE_INT, &value);
|
ret = admin_get(key, DB_TYPE_INT, &value);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_DB, "Error reading admin value: %s\n", key);
|
DPRINTF(E_DBG, L_DB, "Could not find key '%s' in admin table\n", key);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3974,7 +3974,7 @@ db_admin_getint64(const char *key)
|
|||||||
ret = admin_get(key, DB_TYPE_INT64, &value);
|
ret = admin_get(key, DB_TYPE_INT64, &value);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
DPRINTF(E_LOG, L_DB, "Error reading admin value: %s\n", key);
|
DPRINTF(E_DBG, L_DB, "Could not find key '%s' in admin table\n", key);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user