mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove undesirable Journal::Stream constructor:
Constructing a Stream from a Sink would elide specifying the Severity level of the Stream. That constructor is removed so if a Stream is constructed from a Sink the Severity must be specified.
This commit is contained in:
@@ -175,17 +175,12 @@ public:
|
||||
{
|
||||
public:
|
||||
/** Create a stream which produces no output. */
|
||||
Stream ()
|
||||
explicit Stream ()
|
||||
: m_sink (getNullSink())
|
||||
, m_level (severities::kDisabled)
|
||||
{ }
|
||||
|
||||
Stream (Sink& sink)
|
||||
: m_sink (sink)
|
||||
, m_level (sink.threshold())
|
||||
{ }
|
||||
|
||||
/** Create stream that writes at the given level.
|
||||
/** Create a stream that writes at the given level.
|
||||
|
||||
Constructor is inlined so checking active() very inexpensive.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user