From 863662c542e7e42fbfc31c3e9f65f32ba2b1f4ec Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 24 Nov 2009 00:30:06 +0000 Subject: [PATCH] enable p3dplugin.log by default too --- direct/src/plugin_activex/PPLogger.cpp | 3 +++ direct/src/plugin_npapi/startup.cxx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/direct/src/plugin_activex/PPLogger.cpp b/direct/src/plugin_activex/PPLogger.cpp index d9d704a64a..25d6c79603 100644 --- a/direct/src/plugin_activex/PPLogger.cpp +++ b/direct/src/plugin_activex/PPLogger.cpp @@ -126,6 +126,9 @@ void PPLogger::Open( const std::string &rootDir ) log_basename = P3D_PLUGIN_LOG_BASENAME1; } #endif + if (log_basename.empty()) { + log_basename = "p3dplugin"; + } if (!log_basename.empty()) { std::string log_pathname = log_directory; diff --git a/direct/src/plugin_npapi/startup.cxx b/direct/src/plugin_npapi/startup.cxx index 1ca922c884..42fb98cd7a 100644 --- a/direct/src/plugin_npapi/startup.cxx +++ b/direct/src/plugin_npapi/startup.cxx @@ -79,6 +79,9 @@ open_logfile() { log_basename = P3D_PLUGIN_LOG_BASENAME1; } #endif + if (log_basename.empty()) { + log_basename = "p3dplugin"; + } if (!log_basename.empty()) { string log_pathname = log_directory;