mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Disable WebSocket logging
This commit is contained in:
@@ -92,8 +92,9 @@ template <typename level_type>
|
|||||||
class logger {
|
class logger {
|
||||||
public:
|
public:
|
||||||
template <typename T>
|
template <typename T>
|
||||||
logger<level_type>& operator<<(T a) {
|
logger<level_type>& operator<<(T a)
|
||||||
m_oss << a; // For now, make this unconditional DJS
|
{
|
||||||
|
// VFALCO Logging disabled (can cause a crash)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,18 +131,8 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
logger<level_type>& print() {
|
logger<level_type>& print()
|
||||||
websocketLog(m_write_level, m_oss.str()); // Hand to our logger DJS
|
{
|
||||||
m_oss.str("");
|
|
||||||
#if 0
|
|
||||||
if (test_level(m_write_level)) {
|
|
||||||
std::cout << m_prefix <<
|
|
||||||
boost::posix_time::to_iso_extended_string(
|
|
||||||
boost::posix_time::second_clock::local_time()
|
|
||||||
) << " [" << m_write_level << "] " << m_oss.str() << std::endl;
|
|
||||||
m_oss.str("");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,7 +141,6 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
std::ostringstream m_oss;
|
|
||||||
level_type m_write_level;
|
level_type m_write_level;
|
||||||
level_type m_level;
|
level_type m_level;
|
||||||
std::string m_prefix;
|
std::string m_prefix;
|
||||||
|
|||||||
Reference in New Issue
Block a user