mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 06:16:55 -04:00
test: log timestamps in test logger
This commit is contained in:
parent
790d70c628
commit
7f587a1b6d
@ -66,9 +66,10 @@ class test_logger : public ::dwarfs::logger {
|
||||
void write(level_type level, std::string_view output,
|
||||
source_location loc) override {
|
||||
if (output_ && level <= output_threshold_) {
|
||||
auto const t = get_current_time_string();
|
||||
std::lock_guard lock(mx_);
|
||||
std::cerr << level_char(level) << " [" << loc.file_name() << ":"
|
||||
<< loc.line() << "] " << output << "\n";
|
||||
std::cerr << level_char(level) << ' ' << t << " [" << loc.file_name()
|
||||
<< ":" << loc.line() << "] " << output << "\n";
|
||||
}
|
||||
|
||||
if (level <= threshold_) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user