Skip to content

Commit dd7b58d

Browse files
committed
chore: Use DebugLog instead of Debug_assert and change log message
1 parent 35befd8 commit dd7b58d

File tree

1 file changed

+3
-3
lines changed
  • Core/GameEngine/Source/Common/System

1 file changed

+3
-3
lines changed

Core/GameEngine/Source/Common/System/Debug.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ void DebugInit(int flags)
406406
remove(theLogFileNamePrev);
407407
if (rename(theLogFileName, theLogFileNamePrev) != 0)
408408
{
409-
DEBUG_ASSERTLOG(false, ("Could not rename log file and will remove instead"));
409+
DebugLog("Could not rename log file '%s' to '%s' and is remove instead", theLogFileName, theLogFileNamePrev);
410410
remove(theLogFileName);
411411
}
412412

@@ -745,7 +745,7 @@ void ReleaseCrash(const char *reason)
745745
remove(prevbuf);
746746
if (rename(curbuf, prevbuf) != 0)
747747
{
748-
DEBUG_ASSERTLOG(false, ("Could not rename buffer file and will remove instead"));
748+
DebugLog("Could not rename buffer file '%s' to '%s' and is remove instead", curbuf, prevbuf);
749749
remove(curbuf);
750750
}
751751

@@ -838,7 +838,7 @@ void ReleaseCrashLocalized(const AsciiString& p, const AsciiString& m)
838838
remove(prevbuf);
839839
if (rename(curbuf, prevbuf) != 0)
840840
{
841-
DEBUG_ASSERTLOG(false, ("Could not rename buffer file and will remove instead"));
841+
DebugLog("Could not rename buffer file '%s' to '%s' and is remove instead", curbuf, prevbuf);
842842
remove(curbuf);
843843
}
844844

0 commit comments

Comments
 (0)