Skip to content

Commit 529792d

Browse files
committed
Fix error output being redirected incorrectly
1 parent 0a774a4 commit 529792d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
88

9+
## Fixed
10+
* Fix error output being redirected to `Debug.Log` instead of `Debug.LogError`
11+
912

1013
## [0.4.0]
1114

Scripts/UnityPython.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static ScriptEngine CreateEngine(IDictionary<string, object> options = nu
2828
engine.Runtime.IO.SetOutput(infoStream, infoWriter);
2929

3030
var errorStream = new MemoryStream();
31-
var errorWriter = new UnityLogWriter(Debug.Log, errorStream);
31+
var errorWriter = new UnityLogWriter(Debug.LogError, errorStream);
3232
engine.Runtime.IO.SetErrorOutput(errorStream, errorWriter);
3333

3434

0 commit comments

Comments
 (0)