Commit fae9e86a authored by gabi's avatar gabi

bug fixes

parent 650486a0
...@@ -16,7 +16,7 @@ public: ...@@ -16,7 +16,7 @@ public:
file_flush_helper(const file_flush_helper&) = delete; file_flush_helper(const file_flush_helper&) = delete;
void write(const log_msg msg, std::ofstream& ofs) void write(const log_msg& msg, std::ofstream& ofs)
{ {
auto buf = msg.formatted.buf(); auto buf = msg.formatted.buf();
ofs.write(buf.data(), buf.size()); ofs.write(buf.data(), buf.size());
......
...@@ -114,7 +114,7 @@ inline c11log::logger::logger(const std::string& logger_name, const It& begin, c ...@@ -114,7 +114,7 @@ inline c11log::logger::logger(const std::string& logger_name, const It& begin, c
template <typename... Args> template <typename... Args>
inline c11log::details::line_logger c11log::logger::log(level::level_enum lvl, const Args&... args) { inline c11log::details::line_logger c11log::logger::log(level::level_enum lvl, const Args&... args) {
details::line_logger l(this, lvl, true); details::line_logger l(this, lvl, should_log(lvl));
_variadic_log(l, args...); _variadic_log(l, args...);
return l; return l;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment