mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
Don't crash on logrotate.
This commit is contained in:
@@ -286,10 +286,13 @@ void Log::setLogFile (boost::filesystem::path const& path)
|
||||
|
||||
outStream = newStream;
|
||||
|
||||
if (pathToLog != NULL)
|
||||
delete pathToLog;
|
||||
if (pathToLog != &path)
|
||||
{
|
||||
if (pathToLog != NULL)
|
||||
delete pathToLog;
|
||||
|
||||
pathToLog = new boost::filesystem::path (path);
|
||||
pathToLog = new boost::filesystem::path (path);
|
||||
}
|
||||
}
|
||||
|
||||
bool LogPartition::setSeverity (const std::string& partition, LogSeverity severity)
|
||||
|
||||
Reference in New Issue
Block a user