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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLLog.h

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: 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/SQLLog.h
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLLog.h b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLLog.h
new file mode 100644
index 0000000000000000000000000000000000000000..351ebef7449b88be19ea9f03b10140a022b51aee
--- /dev/null
+++ b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLLog.h
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SQLLog_h
+#define SQLLog_h
+
+#include "wtf/Assertions.h"
+
+#if DCHECK_IS_ON()
+// We can see logs with |--v=N| or |--vmodule=SQLLog=N| where N is a
+// verbose level.
+#define SQL_DVLOG(verbose_level) !((verbose_level) <= ::logging::GetVlogLevel("SQLLog.h")) ? (void) 0 : ::logging::LogMessageVoidify() & VLOG_STREAM(verbose_level)
michaeln 2016/08/11 00:19:35 Ditto would using LAZY_STREAM help make sense?
+#else
+#define SQL_DVLOG(verbose_level) EAT_STREAM_PARAMETERS
+#endif
+
+#endif // SQLLog_h

Powered by Google App Engine
This is Rietveld 408576698