diff --git a/example/example.cpp b/example/example.cpp index a3ff011b..4d82c994 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) auto null_sink = std::make_shared(); //auto async = std::make_shared(1000); //async->add_sink(fsink); - my_logger.add_sink(null_sink); + my_logger.add_sink(fsink); auto start = system_clock::now(); diff --git a/include/c11log/formatter.h b/include/c11log/formatter.h index 53bb444f..907e4497 100644 --- a/include/c11log/formatter.h +++ b/include/c11log/formatter.h @@ -70,8 +70,6 @@ inline void c11log::formatters::default_formatter::_format_time(const log_clock: tm_now.tm_min, tm_now.tm_sec); last_tm = tm_now; - - } dest << last_time_str; }