diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-21 18:07:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-21 18:07:02 +0200 |
commit | 9792fc9d137b4dd702360ac0242f9a7a26e675c2 (patch) | |
tree | 8ea454a973e3ef03ffb82dd9dd41acd06b989694 /bpkg/pkg-unpack.cxx | |
parent | 542bb3eb22eefd6ed4161a5e02c828ac5c26f08b (diff) |
Add tracer_guard to restore database tracer
Diffstat (limited to 'bpkg/pkg-unpack.cxx')
-rw-r--r-- | bpkg/pkg-unpack.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/pkg-unpack.cxx b/bpkg/pkg-unpack.cxx index 6979842..463531f 100644 --- a/bpkg/pkg-unpack.cxx +++ b/bpkg/pkg-unpack.cxx @@ -28,7 +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. + tracer_guard tg (db, trace); if (!exists (d)) fail << "package directory " << d << " does not exist"; @@ -82,7 +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. + tracer_guard tg (db, trace); transaction t (db.begin ()); shared_ptr<package> p (db.find<package> (name)); |