File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -214,12 +214,13 @@ void OpenDebugLog()
214
214
assert (vMsgsBeforeOpenLog);
215
215
boost::filesystem::path pathDebug = GetDataDir () / " debug.log" ;
216
216
fileout = fopen (pathDebug.string ().c_str (), " a" );
217
- if (fileout) setbuf (fileout, NULL ); // unbuffered
218
-
219
- // dump buffered messages from before we opened the log
220
- while (!vMsgsBeforeOpenLog->empty ()) {
221
- FileWriteStr (vMsgsBeforeOpenLog->front (), fileout);
222
- vMsgsBeforeOpenLog->pop_front ();
217
+ if (fileout) {
218
+ setbuf (fileout, NULL ); // unbuffered
219
+ // dump buffered messages from before we opened the log
220
+ while (!vMsgsBeforeOpenLog->empty ()) {
221
+ FileWriteStr (vMsgsBeforeOpenLog->front (), fileout);
222
+ vMsgsBeforeOpenLog->pop_front ();
223
+ }
223
224
}
224
225
225
226
delete vMsgsBeforeOpenLog;
@@ -838,4 +839,4 @@ std::string CopyrightHolders(const std::string& strPrefix)
838
839
strCopyrightHolders += " \n " + strPrefix + " The Bitcoin Core developers" ;
839
840
}
840
841
return strCopyrightHolders;
841
- }
842
+ }
You can’t perform that action at this time.
0 commit comments