diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 17:15:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 17:15:52 -0400 |
commit | bc2983928dc8f98051321846d8c8fa374c8181b6 (patch) | |
tree | 0583aa92ab796ba6c4167618ff1f757e58c9e174 /src/utils.cc | |
parent | 5e1870e259e866f3720bddbf757dec0c781cc967 (diff) | |
download | fork-ledger-bc2983928dc8f98051321846d8c8fa374c8181b6.tar.gz fork-ledger-bc2983928dc8f98051321846d8c8fa374c8181b6.tar.bz2 fork-ledger-bc2983928dc8f98051321846d8c8fa374c8181b6.zip |
Compilation verification code only with debugging
Previously, --verify would work even if the sources were built with
default options. However, in the interests of performance, --verify is
now only available if --enable-debug was passed to configure.
Diffstat (limited to 'src/utils.cc')
-rw-r--r-- | src/utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.cc b/src/utils.cc index d20d585a..d42ed79c 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -463,12 +463,14 @@ bool logger_func(log_level_t level) *_log_stream << std::right << std::setw(5) << (CURRENT_TIME() - logger_start).total_milliseconds() << "ms"; +#if defined(VERIFY_ON) IF_VERIFY() { *_log_stream << std::right << std::setw(6) << std::setprecision(3); stream_memory_size(*_log_stream, current_objects_size()); *_log_stream << std::right << std::setw(6) << std::setprecision(3); stream_memory_size(*_log_stream, current_memory_size()); } +#endif *_log_stream << " " << std::left << std::setw(7); |