Fixed rotate bug

This commit is contained in:
gabime
2014-11-15 18:42:53 +02:00
parent bbc6771352
commit a9abfbb005
2 changed files with 9 additions and 6 deletions

View File

@@ -80,6 +80,14 @@ public:
throw spdlog_ex("Failed opening file " + fname + " for writing");
}
void reopen()
{
if(_filename.empty())
throw spdlog_ex("Failed re opening file - was not opened before");
open(_filename);
}
void close()
{
if (_fd)