summary refs log tree commit diff
path: root/lib/debug.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2018-04-03 08:00:02 +0200
committerProfpatsch <mail@profpatsch.de>2018-04-27 18:59:39 +0200
commite49f40e1caad0827096927f1a3c631209859496a (patch)
tree21f9253e17ba8e82da30c07e014c89daa655e57a /lib/debug.nix
parentfd54a946ca6d42b53df8d9040263fa43f6e426e9 (diff)
downloadnixpkgs-e49f40e1caad0827096927f1a3c631209859496a.tar
nixpkgs-e49f40e1caad0827096927f1a3c631209859496a.tar.gz
nixpkgs-e49f40e1caad0827096927f1a3c631209859496a.tar.bz2
nixpkgs-e49f40e1caad0827096927f1a3c631209859496a.tar.lz
nixpkgs-e49f40e1caad0827096927f1a3c631209859496a.tar.xz
nixpkgs-e49f40e1caad0827096927f1a3c631209859496a.tar.zst
nixpkgs-e49f40e1caad0827096927f1a3c631209859496a.zip
lib/debug: deprecate `traceCallXml`
Incompletely documented, and a FIXME/bug that has been there for years.
Diffstat (limited to 'lib/debug.nix')
-rw-r--r--lib/debug.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/debug.nix b/lib/debug.nix
index a792806fa79..36f8c30353a 100644
--- a/lib/debug.nix
+++ b/lib/debug.nix
@@ -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
-      );
+      ));
 }