From 4b3b85c597a2d4139ecaa6b78b2fa9c89be3319f Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 15 Aug 2018 21:05:21 +0800 Subject: refactor: use fs:: over boost::filesystem:: --- src/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/logging.cpp') diff --git a/src/logging.cpp b/src/logging.cpp index e8e22cbf97..6557dddffb 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -245,7 +245,7 @@ void BCLog::Logger::ShrinkDebugFile() size_t log_size = 0; try { log_size = fs::file_size(m_file_path); - } catch (boost::filesystem::filesystem_error &) {} + } catch (const fs::filesystem_error&) {} // If debug.log file is more than 10% bigger the RECENT_DEBUG_HISTORY_SIZE // trim it down by saving only the last RECENT_DEBUG_HISTORY_SIZE bytes -- cgit v1.2.3