Skip to content

Commit

Permalink
Namespace system actors logs, reduce default infrastructure log level (
Browse files Browse the repository at this point in the history
  • Loading branch information
mhelleborg committed May 27, 2022
1 parent 40c3dd2 commit 2e74b6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Proto.Actor/Configuration/ActorSystemConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public record ActorSystemConfig
/// All system props are translated via this function
/// </summary>
public Func<string, Props, Props> ConfigureSystemProps { get; init; } = (_,props) => {
var logger = Log.CreateLogger("SystemActors");
var logger = Log.CreateLogger("Proto.SystemActors");
return props
.WithDeadlineDecorator(TimeSpan.FromSeconds(1), logger)
.WithLoggingContextDecorator(logger, LogLevel.None, LogLevel.Information, LogLevel.Error )
.WithLoggingContextDecorator(logger, LogLevel.None, LogLevel.Debug, LogLevel.Error )
.WithGuardianSupervisorStrategy(Supervision.AlwaysRestartStrategy);
};

Expand Down
2 changes: 1 addition & 1 deletion src/Proto.Actor/Context/ActorLoggingContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public override async Task<T> RequestAsync<T>(PID target, object message, Cancel
{
if (_logLevel != LogLevel.None && _logger.IsEnabled(_logLevel))
{
_logger.Log(_logLevel, "Actor {Self} {ActorType} Sending ReqeustAsync {MessageType}:{Message} to {Target}", Self, ActorType,
_logger.Log(_logLevel, "Actor {Self} {ActorType} Sending RequestAsync {MessageType}:{Message} to {Target}", Self, ActorType,
message.GetType().Name, message, target
);
}
Expand Down

0 comments on commit 2e74b6a

Please sign in to comment.