Remove invalid warning about logging packets

This commit is contained in:
Benau 2018-04-06 21:27:34 +08:00
parent f37ca7ada5
commit ba98e7dde9

View File

@ -186,9 +186,9 @@ void Network::openLog()
std::string s = file_manager
->getUserConfigFile(FileManager::getStdoutName()+".packet");
m_log_file.setAtomic(fopen(s.c_str(), "w+"));
if (!m_log_file.getData())
Log::warn("STKHost", "Network packets won't be logged: no file.");
}
if (!m_log_file.getData())
Log::warn("STKHost", "Network packets won't be logged: no file.");
} // openLog
// ----------------------------------------------------------------------------