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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteDatabase.cpp

Issue 2229213002: Web SQL: Replace WTF_LOG() with STORAGE_DVLOG() or SQL_DVLOG(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using LAZY_STREAM Created 4 years, 4 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: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteDatabase.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteDatabase.cpp b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteDatabase.cpp
index 94360312e85a4338a142681b2b9f69a13aafc2c4..041771345e4012b2569b4b7aa6e6adb600f183d0 100644
--- a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteDatabase.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteDatabase.cpp
@@ -26,7 +26,7 @@
#include "modules/webdatabase/sqlite/SQLiteDatabase.h"
-#include "platform/Logging.h"
+#include "modules/webdatabase/sqlite/SQLLog.h"
#include "modules/webdatabase/sqlite/SQLiteFileSystem.h"
#include "modules/webdatabase/sqlite/SQLiteStatement.h"
#include "modules/webdatabase/DatabaseAuthorizer.h"
@@ -191,7 +191,7 @@ void SQLiteDatabase::setBusyTimeout(int ms)
if (m_db)
sqlite3_busy_timeout(m_db, ms);
else
- WTF_LOG(SQLDatabase, "BusyTimeout set on non-open database");
+ SQL_DVLOG(1) << "BusyTimeout set on non-open database";
}
bool SQLiteDatabase::executeCommand(const String& sql)
@@ -214,7 +214,7 @@ bool SQLiteDatabase::tableExists(const String& tablename)
int SQLiteDatabase::runVacuumCommand()
{
if (!executeCommand("VACUUM;"))
- WTF_LOG(SQLDatabase, "Unable to vacuum database - %s", lastErrorMsg());
+ SQL_DVLOG(1) << "Unable to vacuum database -" << lastErrorMsg();
return lastError();
}
@@ -224,7 +224,7 @@ int SQLiteDatabase::runIncrementalVacuumCommand()
enableAuthorizer(false);
if (!executeCommand("PRAGMA incremental_vacuum"))
- WTF_LOG(SQLDatabase, "Unable to run incremental vacuum - %s", lastErrorMsg());
+ SQL_DVLOG(1) << "Unable to run incremental vacuum - " << lastErrorMsg();
enableAuthorizer(true);
return lastError();

Powered by Google App Engine
This is Rietveld 408576698