mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 02:09:36 +01:00
Logger::result(): Support logging arbitrary JSON objects
This commit is contained in:
parent
220000dc1a
commit
2a2af3f72f
4 changed files with 27 additions and 4 deletions
|
|
@ -2656,11 +2656,11 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs()
|
|||
worker.store.printStorePath(drvPath),
|
||||
wanted.to_string(HashFormat::SRI, true),
|
||||
got.to_string(HashFormat::SRI, true)));
|
||||
// FIXME: put this in BuildResult and log that as JSON.
|
||||
act->result(resHashMismatch,
|
||||
{worker.store.printStorePath(drvPath),
|
||||
wanted.to_string(HashFormat::SRI, true),
|
||||
got.to_string(HashFormat::SRI, true)
|
||||
{
|
||||
{"storePath", worker.store.printStorePath(drvPath)},
|
||||
{"wanted", wanted.to_string(HashFormat::SRI, true)},
|
||||
{"got", got.to_string(HashFormat::SRI, true)},
|
||||
});
|
||||
}
|
||||
if (!newInfo0.references.empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue