| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef StorageLog_h | 5 #ifndef StorageLog_h |
| 6 #define StorageLog_h | 6 #define StorageLog_h |
| 7 | 7 |
| 8 #include "wtf/Assertions.h" | 8 #include "wtf/Assertions.h" |
| 9 | 9 |
| 10 #if DCHECK_IS_ON() | 10 #if DCHECK_IS_ON() |
| 11 // We can see logs with |--v=N| or |--vmodule=StorageLog=N| where N is a | 11 // We can see logs with |--v=N| or |--vmodule=StorageLog=N| where N is a |
| 12 // verbose level. | 12 // verbose level. |
| 13 #define STORAGE_DVLOG(verbose_level) \ | 13 #define STORAGE_DVLOG(verbose_level) \ |
| 14 LAZY_STREAM(VLOG_STREAM(verbose_level), \ | 14 LAZY_STREAM(VLOG_STREAM(verbose_level), \ |
| 15 ((verbose_level) <= ::logging::GetVlogLevel("StorageLog.h"))) | 15 ((verbose_level) <= ::logging::GetVlogLevel("StorageLog.h"))) |
| 16 #else | 16 #else |
| 17 #define STORAGE_DVLOG(verbose_level) EAT_STREAM_PARAMETERS | 17 #define STORAGE_DVLOG(verbose_level) ::logging::NullStream().stream() |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 #endif // StorageLog_h | 20 #endif // StorageLog_h |
| OLD | NEW |