mirror of
https://github.com/Zygo/bees.git
synced 2025-07-07 02:42:27 +02:00
progress: put the progress table in the stats and status files
Make the progress information more accessible, without having to enable full debug log and fish it out of the stream with grep. Also increase the progress log level to INFO. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
@ -1069,10 +1069,6 @@ BeesScanModeExtent::next_transid(const CrawlMap &crawl_map_unused)
|
||||
});
|
||||
BEESCOUNT(progress_ok);
|
||||
}
|
||||
ostringstream oss;
|
||||
eta.left("PROGRESS: ");
|
||||
eta.mid(" ");
|
||||
eta.right("");
|
||||
eta.insert_row(0, vector<Table::Content> {
|
||||
Table::Text("done"),
|
||||
Table::Text(pretty(fs_size)),
|
||||
@ -1087,8 +1083,24 @@ BeesScanModeExtent::next_transid(const CrawlMap &crawl_map_unused)
|
||||
});
|
||||
const auto dash_fill = Table::Fill('-');
|
||||
eta.insert_row(1, vector<Table::Content>(eta.cols().size(), dash_fill));
|
||||
oss << eta;
|
||||
BEESLOGDEBUG(oss.str());
|
||||
eta.left("");
|
||||
eta.mid(" ");
|
||||
eta.right("");
|
||||
|
||||
// One for publication through beesstats.txt and $BEESSTATUS
|
||||
{
|
||||
ostringstream progress_oss;
|
||||
progress_oss << eta;
|
||||
m_ctx->set_progress(progress_oss.str());
|
||||
}
|
||||
|
||||
// One for the debug log
|
||||
{
|
||||
eta.left("PROGRESS: ");
|
||||
ostringstream log_oss;
|
||||
log_oss << eta;
|
||||
BEESLOGINFO(log_oss.str());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user