Remove unused mode argument

pull/3236/head
elsid 7 months ago
parent 6d43aedec8
commit ea84d1ce0c
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -383,12 +383,11 @@ Misc::Locked<std::ostream&> getLockedRawStderr()
return Misc::Locked<std::ostream&>(*rawStderrMutex, getRawStderr());
}
// Redirect cout and cerr to the log file
void setupLogging(const std::filesystem::path& logDir, std::string_view appName, std::ios_base::openmode mode)
void setupLogging(const std::filesystem::path& logDir, std::string_view appName)
{
#if !(defined(_WIN32) && defined(_DEBUG))
const std::string logName = Misc::StringUtils::lowerCase(appName) + ".log";
logfile.open(logDir / logName, mode);
logfile.open(logDir / logName, std::ios::out);
Debug::Identity log(logfile);

@ -35,8 +35,8 @@ std::ostream& getRawStderr();
Misc::Locked<std::ostream&> getLockedRawStderr();
void setupLogging(
const std::filesystem::path& logDir, std::string_view appName, std::ios_base::openmode mode = std::ios::out);
// Redirect cout and cerr to the log file
void setupLogging(const std::filesystem::path& logDir, std::string_view appName);
int wrapApplication(int (*innerApplication)(int argc, char* argv[]), int argc, char* argv[], std::string_view appName);

Loading…
Cancel
Save