Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: Source/WebCore/platform/sql/SQLiteDatabase.cpp

Issue 13643002: Rename LOG() to LOG_INFO() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/platform/sql/SQLiteDatabase.cpp
diff --git a/Source/WebCore/platform/sql/SQLiteDatabase.cpp b/Source/WebCore/platform/sql/SQLiteDatabase.cpp
index 2418fc12c458544a79ea5888e2e00f0a6d3c033c..8115616d0de3064931c544acfa90e242d84d9bba 100644
--- a/Source/WebCore/platform/sql/SQLiteDatabase.cpp
+++ b/Source/WebCore/platform/sql/SQLiteDatabase.cpp
@@ -246,7 +246,7 @@ void SQLiteDatabase::setBusyTimeout(int ms)
if (m_db)
sqlite3_busy_timeout(m_db, ms);
else
- LOG(SQLDatabase, "BusyTimeout set on non-open database");
+ LOG_INFO(SQLDatabase, "BusyTimeout set on non-open database");
}
void SQLiteDatabase::setBusyHandler(int(*handler)(void*, int))
@@ -254,7 +254,7 @@ void SQLiteDatabase::setBusyHandler(int(*handler)(void*, int))
if (m_db)
sqlite3_busy_handler(m_db, handler, NULL);
else
- LOG(SQLDatabase, "Busy handler set on non-open database");
+ LOG_INFO(SQLDatabase, "Busy handler set on non-open database");
}
bool SQLiteDatabase::executeCommand(const String& sql)
@@ -284,7 +284,7 @@ void SQLiteDatabase::clearAllTables()
String query = ASCIILiteral("SELECT name FROM sqlite_master WHERE type='table';");
Vector<String> tables;
if (!SQLiteStatement(*this, query).returnTextResults(0, tables)) {
- LOG(SQLDatabase, "Unable to retrieve list of tables from database");
+ LOG_INFO(SQLDatabase, "Unable to retrieve list of tables from database");
return;
}
@@ -292,14 +292,14 @@ void SQLiteDatabase::clearAllTables()
if (*table == "sqlite_sequence")
continue;
if (!executeCommand("DROP TABLE " + *table))
- LOG(SQLDatabase, "Unable to drop table %s", (*table).ascii().data());
+ LOG_INFO(SQLDatabase, "Unable to drop table %s", (*table).ascii().data());
}
}
int SQLiteDatabase::runVacuumCommand()
{
if (!executeCommand(ASCIILiteral("VACUUM;")))
- LOG(SQLDatabase, "Unable to vacuum database - %s", lastErrorMsg());
+ LOG_INFO(SQLDatabase, "Unable to vacuum database - %s", lastErrorMsg());
return lastError();
}
@@ -309,7 +309,7 @@ int SQLiteDatabase::runIncrementalVacuumCommand()
enableAuthorizer(false);
if (!executeCommand(ASCIILiteral("PRAGMA incremental_vacuum")))
- LOG(SQLDatabase, "Unable to run incremental vacuum - %s", lastErrorMsg());
+ LOG_INFO(SQLDatabase, "Unable to run incremental vacuum - %s", lastErrorMsg());
enableAuthorizer(true);
return lastError();
« no previous file with comments | « Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp ('k') | Source/WebCore/platform/sql/SQLiteStatement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698