lib/debug: deprecate traceCallXml
Incompletely documented, and a FIXME/bug that has been there for years.
This commit is contained in:
parent
fd54a946ca
commit
e49f40e1ca
1 changed files with 4 additions and 2 deletions
|
@ -128,7 +128,9 @@ rec {
|
|||
# note: if result doesn't evaluate you'll get no trace at all (FIXME)
|
||||
# args should be printed in any case
|
||||
traceCallXml = a:
|
||||
if !isInt a then
|
||||
trace ( "Warning: `traceCallXml` is deprecated "
|
||||
+ "and will be removed in the next release." )
|
||||
(if !isInt a then
|
||||
traceCallXml 1 "calling ${a}\n"
|
||||
else
|
||||
let nr = a;
|
||||
|
@ -140,5 +142,5 @@ rec {
|
|||
else
|
||||
let r = builtins.seq expr expr;
|
||||
in trace "${str}\n result:\n${builtins.toXML r}" r
|
||||
);
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue