Skip to content
Snippets Groups Projects
Commit 8438014f authored by svornost's avatar svornost
Browse files

clean up console logging

parent fc755adb
No related branches found
No related tags found
1 merge request!6284More BC followup
......@@ -75,14 +75,12 @@ bool FCHostHandler::OnConsoleMessage(CefRefPtr<CefBrowser> browser, cef_log_seve
{
std::ofstream s("console.log", std::ios_base::app);
s << DateTime() << " - ";
if (source.c_str()) {
if (!source.empty()) {
s << source.c_str();
} else {
s << "Unknown Source";
}
s << ":" << line << ": " << message.c_str() << "\n";
s.flush();
s.close();
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment