PhysicsBody error messages are only shown in the console when verbose logging is on.
This commit is contained in:
@@ -379,7 +379,7 @@ namespace Barotrauma
|
||||
" to a physics body (userdata: " + userData +
|
||||
"), value: " + value + "\n" + Environment.StackTrace;
|
||||
|
||||
DebugConsole.ThrowError(errorMsg);
|
||||
if (GameSettings.VerboseLogging) DebugConsole.ThrowError(errorMsg);
|
||||
GameAnalyticsManager.AddErrorEventOnce(
|
||||
"PhysicsBody.SetPosition:InvalidPosition" + userData,
|
||||
GameAnalyticsSDK.Net.EGAErrorSeverity.Error,
|
||||
@@ -401,7 +401,7 @@ namespace Barotrauma
|
||||
" to a physics body (userdata: " + userData +
|
||||
"), value: " + value + "\n" + Environment.StackTrace;
|
||||
|
||||
DebugConsole.ThrowError(errorMsg);
|
||||
if (GameSettings.VerboseLogging) DebugConsole.ThrowError(errorMsg);
|
||||
GameAnalyticsManager.AddErrorEventOnce(
|
||||
"PhysicsBody.SetPosition:InvalidPosition" + userData,
|
||||
GameAnalyticsSDK.Net.EGAErrorSeverity.Error,
|
||||
|
||||
Reference in New Issue
Block a user