Skip to content

Commit

Permalink
Fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Piechura authored and marcpiechura committed Oct 5, 2016
1 parent 4a976b0 commit 3416044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/Akka.Streams/Implementation/Fusing/Ops.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1735,7 +1735,7 @@ public Logic(Log<T> stage, Attributes inheritedAttributes) : base(stage.Shape)
if (IsEnabled(_logLevels.OnFailure))
{
if (_logLevels.OnFailure == LogLevel.ErrorLevel)
_log.Error(ex, $"[{stage._name}] Upstream failed");
_log.Error(ex, $"[{stage._name}] Upstream failed.");
else
_log.Log(_logLevels.OnFailure,
$"[{stage._name}] Upstream failed, cause {ex.GetType().Name}: {ex.Message}");
Expand All @@ -1745,15 +1745,15 @@ public Logic(Log<T> stage, Attributes inheritedAttributes) : base(stage.Shape)
}, onUpstreamFinish: () =>
{
if (IsEnabled(_logLevels.OnFinish))
_log.Log(_logLevels.OnFinish, $"[{stage._name}] Upstream finished");
_log.Log(_logLevels.OnFinish, $"[{stage._name}] Upstream finished.");

CompleteStage();
});

SetHandler(stage.Outlet, onPull: ()=> Pull(stage.Inlet), onDownstreamFinish: () =>
{
if (IsEnabled(_logLevels.OnFinish))
_log.Log(_logLevels.OnFinish, $"[{stage._name}] Downstream finished");
_log.Log(_logLevels.OnFinish, $"[{stage._name}] Downstream finished.");

CompleteStage();
});
Expand Down Expand Up @@ -2412,4 +2412,4 @@ public StatefulSelectMany(Func<Func<TIn, IEnumerable<TOut>>> concatFactory)

public override string ToString() => "StatefulSelectMany";
}
}
}

0 comments on commit 3416044

Please sign in to comment.