Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Dec 30, 2023
1 parent d29d02e commit 60025c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/glog/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <cstring>
#include <ctime>
#include <iosfwd>
#include <memory>
#include <ostream>
#include <sstream>
#include <string>
Expand Down Expand Up @@ -590,12 +591,13 @@ DECLARE_string(logmailer);
FORMAT_MESSAGE_FROM_SYSTEM | \
FORMAT_MESSAGE_IGNORE_INSERTS, \
0, result, 0, msg, 100, nullptr); \
std::unique_ptr<char, decltype(&LocalFree)> release(message, \
&LocalFree); \
if (message_length > 0) { \
google::LogMessage(__FILE__, __LINE__, google::GLOG_ERROR, 0, \
&google::LogMessage::SendToLog) \
.stream() \
<< reinterpret_cast<const char*>(message); \
LocalFree(message); \
} \
}
#endif
Expand Down

0 comments on commit 60025c0

Please sign in to comment.