mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
* Use nullptr (C++11) instead of NULL. * Put each file into its own namespace declaration. * Remove "using namespace" directives and add scope qualifiers. * Control when beast's implementation of std::equal (C++14) is used. * Tidy up some const declarations. Conflicts: src/ripple_app/shamap/SHAMapSync.cpp src/ripple_app/tx/TransactionEngine.cpp
71 lines
2.2 KiB
C++
71 lines
2.2 KiB
C++
//------------------------------------------------------------------------------
|
|
/*
|
|
This file is part of rippled: https://github.com/ripple/rippled
|
|
Copyright (c) 2012, 2013 Ripple Labs Inc.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted, provided that the above
|
|
copyright notice and this permission notice appear in all copies.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
//==============================================================================
|
|
|
|
#ifndef RIPPLE_PEERFINDER_REPORTING_H_INCLUDED
|
|
#define RIPPLE_PEERFINDER_REPORTING_H_INCLUDED
|
|
|
|
namespace ripple {
|
|
namespace PeerFinder {
|
|
|
|
/** Severity levels for test reporting.
|
|
This allows more fine grained control over reporting for diagnostics.
|
|
*/
|
|
struct Reporting
|
|
{
|
|
// Report simulation parameters
|
|
static bool const params = true;
|
|
|
|
// Report simulation crawl time-evolution
|
|
static bool const crawl = true;
|
|
|
|
// Report nodes aggregate statistics
|
|
static bool const nodes = true;
|
|
|
|
// Report nodes detailed information
|
|
static bool const dump_nodes = false;
|
|
|
|
//
|
|
//
|
|
//
|
|
|
|
// Reports from Network (and children)
|
|
static beast::Journal::Severity const network = beast::Journal::kWarning;
|
|
|
|
// Reports from simulation Node (and children)
|
|
static beast::Journal::Severity const node = beast::Journal::kAll;
|
|
|
|
//
|
|
//
|
|
//
|
|
|
|
// Reports from Logic
|
|
static beast::Journal::Severity const logic = beast::Journal::kAll;
|
|
|
|
// Reports from Livecache
|
|
static beast::Journal::Severity const livecache = beast::Journal::kAll;
|
|
|
|
// Reports from Bootcache
|
|
static beast::Journal::Severity const bootcache = beast::Journal::kAll;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|