bug fixes

This commit is contained in:
gabi 2014-10-15 02:00:31 +03:00
parent 650486a067
commit fae9e86a5d
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public:
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();
ofs.write(buf.data(), buf.size());

View File

@ -114,7 +114,7 @@ inline c11log::logger::logger(const std::string& logger_name, const It& begin, c
template <typename... 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...);
return l;
}