async using lockfree queue and bug fixes regarding usage of cppformat

This commit is contained in:
gabi
2014-12-02 16:41:12 +02:00
parent 0e3120ba51
commit 243dc61e58
9 changed files with 171 additions and 100 deletions

View File

@@ -102,7 +102,7 @@ public:
size_t size = msg.formatted.size();
auto data = msg.formatted.data();
if(std::fwrite(data, sizeof(char), size, _fd) != size)
if(std::fwrite(data, 1, size, _fd) != size)
throw spdlog_ex("Failed writing to file " + _filename);
if(_auto_flush)