summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-31 05:31:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-31 05:31:23 -0400
commit6b59bc54d2c3e7c909d7244ee439786f7e9c2da6 (patch)
tree8c4811da33221a17cfcba773b6a8eb59a589767e /src
parent423d674c6bec05a9d1be36b5a5125007bfbbbeef (diff)
parent599ef86e644e5fffbaede02b16a3d85ec6d94bd2 (diff)
downloadfork-ledger-6b59bc54d2c3e7c909d7244ee439786f7e9c2da6.tar.gz
fork-ledger-6b59bc54d2c3e7c909d7244ee439786f7e9c2da6.tar.bz2
fork-ledger-6b59bc54d2c3e7c909d7244ee439786f7e9c2da6.zip
Merge branch 'next'
Diffstat (limited to 'src')
-rw-r--r--src/archive.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/archive.cc b/src/archive.cc
index d631651f..a37bad90 100644
--- a/src/archive.cc
+++ b/src/archive.cc
@@ -77,8 +77,10 @@ void archive_t::read_header()
"Version number: " << std::hex << version << std::dec);
DEBUG("archive.journal", "Number of sources: " << sources.size());
+#if defined(DEBUG_ON)
foreach (const journal_t::fileinfo_t& i, sources)
DEBUG("archive.journal", "Loaded source: " << *i.filename);
+#endif
}
}
@@ -209,8 +211,10 @@ void archive_t::save(shared_ptr<journal_t> journal)
version = ARCHIVE_VERSION;
sources = journal->sources;
+#if defined(DEBUG_ON)
foreach (const journal_t::fileinfo_t& i, sources)
DEBUG("archive.journal", "Saving source: " << *i.filename);
+#endif
DEBUG("archive.journal",
"Creating archive with version " << std::hex << version << std::dec);