aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-unpack.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-17 15:16:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-17 15:16:47 +0200
commit2677da127b99bc4e6d904de3f14b8fe3f781740f (patch)
treee58e2c305ddba50a5e006f5f885f7b4327a9573e /bpkg/pkg-unpack.cxx
parent2dab23b28def943669796d60b42bede2f0c2cd7f (diff)
Integrate database statement tracing into our diagnostics machinery
Diffstat (limited to 'bpkg/pkg-unpack.cxx')
-rw-r--r--bpkg/pkg-unpack.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/bpkg/pkg-unpack.cxx b/bpkg/pkg-unpack.cxx
index 7116649..f78543e 100644
--- a/bpkg/pkg-unpack.cxx
+++ b/bpkg/pkg-unpack.cxx
@@ -28,6 +28,7 @@ namespace bpkg
pkg_unpack (database& db, const dir_path& c, const dir_path& d, bool purge)
{
tracer trace ("pkg_unpack(dir)");
+ db.tracer (trace); // "Tail" call, never restored.
if (!exists (d))
fail << "package directory " << d << " does not exist";
@@ -81,6 +82,7 @@ namespace bpkg
pkg_unpack (database& db, const dir_path& c, const string& name)
{
tracer trace ("pkg_unpack(pkg)");
+ db.tracer (trace); // "Tail" call, never restored.
transaction t (db.begin ());
shared_ptr<package> p (db.find<package> (name));
@@ -176,7 +178,7 @@ namespace bpkg
const dir_path& c (o.directory ());
level4 ([&]{trace << "configuration: " << c;});
- database db (open (c));
+ database db (open (c, trace));
shared_ptr<package> p;