summaryrefslogtreecommitdiff
path: root/Master/tlpkg
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2008-11-13 20:45:48 +0000
committerNorbert Preining <preining@logic.at>2008-11-13 20:45:48 +0000
commit364466d06373afd696811a2e29f0ecfeb7f956b8 (patch)
tree064e9a8b17691d231a80ee8837f94d02d47ec88d /Master/tlpkg
parent5add2428204d8d6ff589a9679141d288cf421152 (diff)
make tlpdb loading faster by not calling logit if it is not necessary
git-svn-id: svn://tug.org/texlive/trunk@11290 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg')
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm
index 1c2259c8827..2482964cafd 100644
--- a/Master/tlpkg/TeXLive/TLUtils.pm
+++ b/Master/tlpkg/TeXLive/TLUtils.pm
@@ -1537,6 +1537,7 @@ file (see L<process_logging_options>) is defined, it also writes there.
=cut
sub debug {
+ return if ($::opt_verbosity < 1);
logit(\*STDOUT, 1, "D:", @_);
}
@@ -1556,6 +1557,7 @@ we ever found useful when debugging.
=cut
sub ddebug {
+ return if ($::opt_verbosity < 2);
logit(\*STDOUT, 2, "DD:", @_);
}