Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class logger
return;
}

auto const &ts = m_show_progress ? style : fmt::text_style{};
auto const &ts = m_use_color ? style : fmt::text_style{};

std::string str =
"{:%Y-%m-%d %H:%M:%S} "_format(fmt::localtime(std::time(nullptr)));
Expand Down Expand Up @@ -71,6 +71,7 @@ class logger
bool m_log_sql = false;
bool m_log_sql_data = false;
bool m_show_progress = true;
bool m_use_color = osmium::util::isatty(2);

}; // class logger

Expand Down