Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Use Unity logger types in ForwardingDispatcher (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebrynes7 authored Jun 13, 2019
1 parent 7f5d217 commit 831d4bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Breaking Changes

- The constructor for the `ForwardingDispatcher` now accepts a `UnityEngine.LogType` instead of `Improbable.Worker.CInterop.LogLevel` as its parameter. [#987](https://github.com/spatialos/gdk-for-unity/pull/987)

### Fixed

- Fixed a bug where invalid characters in your PATH elements would throw exceptions and break code generation. [#986](https://github.com/spatialos/gdk-for-unity/pull/986)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public class ForwardingDispatcher : ILogDispatcher
/// Constructor for the Forwarding Dispatcher
/// </summary>
/// <param name="minimumLogLevel">The minimum log level to forward logs to the SpatialOS runtime.</param>
public ForwardingDispatcher(LogLevel minimumLogLevel = LogLevel.Warn)
public ForwardingDispatcher(LogType minimumLogLevel = LogType.Warning)
{
this.minimumLogLevel = minimumLogLevel;
this.minimumLogLevel = LogTypeMapping[minimumLogLevel];
Application.logMessageReceived += LogCallback;
}

Expand Down

0 comments on commit 831d4bf

Please sign in to comment.