Skip to content

Commit

Permalink
Revert "Merge pull request #75 from brave-intl/issues/52"
Browse files Browse the repository at this point in the history
This reverts commit fc7de34, reversing
changes made to 211e767.
  • Loading branch information
tmancey committed Feb 26, 2019
1 parent 8752517 commit a9c3037
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ using URLRequestMethod = ::ledger::URL_METHOD;
using Result = ::ledger::Result;
const auto SUCCESS = ::ledger::Result::LEDGER_OK;
const auto FAILED = ::ledger::Result::LEDGER_ERROR;
const auto INFO = ::ledger::LogLevel::LOG_INFO;
const auto WARNING = ::ledger::LogLevel::LOG_WARNING;
const auto ERROR = ::ledger::LogLevel::LOG_ERROR;

using OnSaveCallback = ::ledger::OnSaveCallback;
using OnLoadCallback = ::ledger::OnLoadCallback;
Expand Down
20 changes: 16 additions & 4 deletions vendor/bat-native-confirmations/src/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,22 @@

#include "bat/confirmations/confirmations_client.h"

#define BLOG(severity) \
confirmations_client_->Log(__FILE__, __LINE__, severity)->stream()
#define CONFIRMATIONS_LOG_INFO \
confirmations_client_->Log( \
__FILE__, __LINE__, ::ledger::LogLevel::LOG_INFO)

#define BVLOG(severity) \
confirmations_client_->VerboseLog(__FILE__, __LINE__, severity)->stream()
#define CONFIRMATIONS_LOG_WARNING \
confirmations_client_->Log( \
__FILE__, __LINE__, ::ledger::LogLevel::LOG_WARNING)

#define CONFIRMATIONS_LOG_ERROR \
confirmations_client_->Log( \
__FILE__, __LINE__, ::ledger::LogLevel::LOG_ERROR)

#define BLOG(severity) CONFIRMATIONS_LOG_ ## severity->stream()

#if defined(ERROR)
#define LOG_0 CONFIRMATIONS_LOG_ERROR
#endif

#endif // BAT_CONFIRMATIONS_LOGGING_H_

0 comments on commit a9c3037

Please sign in to comment.