enable p3dplugin.log by default too

This commit is contained in:
David Rose 2009-11-24 00:30:06 +00:00
parent f9e90d497d
commit 863662c542
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;