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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/StorageLog.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef StorageLog_h
6 #define StorageLog_h
7
8 #include "wtf/Assertions.h"
9
10 #if DCHECK_IS_ON()
11 // We can see logs with |--v=N| or |--vmodule=StorageLog=N| where N is a
12 // verbose level.
13 #define STORAGE_DVLOG(verbose_level) !((verbose_level) <= ::logging::GetVlogLeve l("StorageLog.h")) ? (void) 0 : ::logging::LogMessageVoidify() & VLOG_STREAM(ver bose_level)
michaeln 2016/08/11 00:19:35 I'm not so familiar with these logging macros but
tkent 2016/08/11 22:59:41 You're right. We can use LAZY_STREAM. We just nee
14 #else
15 #define STORAGE_DVLOG(verbose_level) EAT_STREAM_PARAMETERS
16 #endif
17
18 #endif // StorageLog_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698