mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-20 20:24:33 +02:00
Change log timestamp format.
This commit is contained in:
parent
2487d7069c
commit
a10a4013c7
@ -67,7 +67,7 @@ void StreamLogger::BindStream(std::ostream *stream, bool ownsStream)
|
|||||||
*/
|
*/
|
||||||
void StreamLogger::ProcessLogEntry(std::ostream& stream, bool tty, const LogEntry& entry)
|
void StreamLogger::ProcessLogEntry(std::ostream& stream, bool tty, const LogEntry& entry)
|
||||||
{
|
{
|
||||||
String timestamp = Utility::FormatDateTime("%Y/%m/%d %H:%M:%S %z", entry.Timestamp);
|
String timestamp = Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", entry.Timestamp);
|
||||||
|
|
||||||
boost::mutex::scoped_lock lock(m_Mutex);
|
boost::mutex::scoped_lock lock(m_Mutex);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user