diff --git a/Atom-Linux/client_handler.cpp b/Atom-Linux/client_handler.cpp index 3f2caf538..805a45d1c 100644 --- a/Atom-Linux/client_handler.cpp +++ b/Atom-Linux/client_handler.cpp @@ -148,39 +148,7 @@ void ClientHandler::OnNavStateChange(CefRefPtr browser, bool ClientHandler::OnConsoleMessage(CefRefPtr browser, const CefString& message, const CefString& source, int line) { - REQUIRE_UI_THREAD(); - - bool first_message; - std::string logFile; - - { - AutoLock lock_scope(this); - - first_message = m_LogFile.empty(); - if (first_message) { - std::stringstream ss; - ss << AppGetWorkingDirectory(); - ss << "/"; - ss << "console.log"; - m_LogFile = ss.str(); - } - logFile = m_LogFile; - } - - FILE* file = fopen(logFile.c_str(), "a"); - if (file) { - std::stringstream ss; - ss << "Message: " << std::string(message) << "\r\nSource: " - << std::string(source) << "\r\nLine: " << line - << "\r\n-----------------------\r\n"; - fputs(ss.str().c_str(), file); - fclose(file); - - if (first_message) - SendNotification(NOTIFY_CONSOLE_MESSAGE); - } - - return false; + //Intentionally left blank } void ClientHandler::OnFocusedNodeChanged(CefRefPtr browser,