diff options
Diffstat (limited to 'remoting/host/desktop_process.cc')
-rw-r--r-- | remoting/host/desktop_process.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/remoting/host/desktop_process.cc b/remoting/host/desktop_process.cc index 77e5410..4a4ab6d 100644 --- a/remoting/host/desktop_process.cc +++ b/remoting/host/desktop_process.cc @@ -10,13 +10,12 @@ #include "base/at_exit.h" #include "base/command_line.h" #include "base/file_path.h" -#include "base/logging.h" #include "base/scoped_native_library.h" #include "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "base/win/windows_version.h" -#include "remoting/host/branding.h" #include "remoting/host/host_exit_codes.h" +#include "remoting/host/logging.h" #include "remoting/host/usage_stats_consent.h" #if defined(OS_MACOSX) @@ -74,19 +73,7 @@ int main(int argc, char** argv) { // LazyInstance, MessageLoop). base::AtExitManager exit_manager; - // Initialize logging with an appropriate log-file location, and default to - // log to that on Windows, or to standard error output otherwise. - FilePath debug_log = remoting::GetConfigDir(). - Append(FILE_PATH_LITERAL("debug.log")); - InitLogging(debug_log.value().c_str(), -#if defined(OS_WIN) - logging::LOG_ONLY_TO_FILE, -#else - logging::LOG_ONLY_TO_SYSTEM_DEBUG_LOG, -#endif - logging::DONT_LOCK_LOG_FILE, - logging::APPEND_TO_OLD_LOG_FILE, - logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); + remoting::InitHostLogging(); const CommandLine* command_line = CommandLine::ForCurrentProcess(); if (command_line->HasSwitch(kHelpSwitchName) || |