From 804a4abbe7b9178b768e7916947ada1c6750f2b8 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 13 Jan 2022 20:38:50 -0500 Subject: [PATCH] Log correct debug.log filename to stdout --- src/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.cpp b/src/util.cpp index a2940a0a3..a2de3bb7d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -900,7 +900,7 @@ void ShrinkDebugFile() int maxlogsize = GetArg("-maxdebugfilesize", 15); unsigned int MAX_DEBUG_LOG_SIZE = maxlogsize*(1024*1024); // convert to MB if (file && boost::filesystem::file_size(pathLog) > MAX_DEBUG_LOG_SIZE ) { - fprintf(stderr,"Shrinking %s to be at most %d bytes\n", GetDataDir().c_str(), MAX_DEBUG_LOG_SIZE ); + fprintf(stderr,"Shrinking %s to be at most %d bytes\n", pathLog.string().c_str(), MAX_DEBUG_LOG_SIZE ); // Restart the file with some of the end std::vector vch(200000,0); fseek(file, -((long)vch.size()), SEEK_END);