mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Restore activity metadata
This allows the progress bar to display "building perl-5.22.3" instead of "building /nix/store/<hash>-perl-5.22.3.drv".
This commit is contained in:
parent
1f56235438
commit
0e9ddcc306
4 changed files with 43 additions and 27 deletions
|
@ -74,10 +74,11 @@ Logger * makeDefaultLogger()
|
|||
|
||||
std::atomic<uint64_t> nextId{(uint64_t) getpid() << 32};
|
||||
|
||||
Activity::Activity(Logger & logger, ActivityType type, const std::string & s)
|
||||
Activity::Activity(Logger & logger, ActivityType type,
|
||||
const std::string & s, const Logger::Fields & fields)
|
||||
: logger(logger), id(nextId++)
|
||||
{
|
||||
logger.startActivity(id, type, s);
|
||||
logger.startActivity(id, type, s, fields);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue