Skip to content

Commit

Permalink
PR Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Pierson committed Jun 23, 2020
1 parent 853b91f commit 9c73550
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/neo/SmartContract/ApplicationEngine.Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,12 @@ internal void RuntimeLog(byte[] state)
{
if (state.Length > MaxNotificationSize) throw new ArgumentException();
string message = Utility.StrictUTF8.GetString(state);
var args = new LogEventArgs(ScriptContainer, CurrentScriptHash, message);
Log?.Invoke(this, args);
traceDebugSink?.Log(args);
if (Log != null || traceDebugSink != null)
{
var args = new LogEventArgs(ScriptContainer, CurrentScriptHash, message);
Log?.Invoke(this, args);
traceDebugSink?.Log(args);
}
}

internal void RuntimeNotify(byte[] eventName, Array state)
Expand Down

0 comments on commit 9c73550

Please sign in to comment.