diff options
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index b7d3b422e..90aefaeeb 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -120,7 +120,11 @@ void Logger::setLogFile(const std::string &logFilename) { closeFile(); +#ifdef __SWITCH__ + mLogFile = nullptr; +#else mLogFile = fopen(logFilename.c_str(), "wt"); +#endif if (mLogFile == nullptr) { |