Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default logging setting to non-verbose #209

Merged
merged 4 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Akka.HealthCheck/Configuration/akka.healthcheck.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
akka.healthcheck{
# Log the complete configuration at INFO level when the actor system is started.
# This is useful when you are uncertain of what configuration is used.
log-config-on-start = on
log-config-on-start = off

# Log Liveness and Readiness probe event messages
# Such as Liveness/Readiness subscriptions, and status request
log-info = on
log-info = off

liveness {
# List of liveness probe providers.
Expand Down
4 changes: 2 additions & 2 deletions src/Akka.HealthCheck/Transports/LivenessTransportActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public LivenessTransportActor(IStatusTransport statusTransport, ImmutableDiction
try
{
if (_logInfo)
_log.Info("Received liveness status from probe [{0}]. Live: {1}, Message: {2}", probeName,
_log.Debug("Received liveness status from probe [{0}]. Live: {1}, Message: {2}", probeName,
status.IsLive, status.StatusMessage);

_statuses[probeName] = status;
Expand Down Expand Up @@ -93,7 +93,7 @@ public LivenessTransportActor(IStatusTransport statusTransport, ImmutableDiction
_livenessProbes.Remove(t.ActorRef);
if (_livenessProbes.Count == 0)
{
_log.Warning("All liveness probe actors terminated! Shutting down.");
_log.Info("All liveness probe actors terminated! Shutting down.");
Context.Stop(Self);
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/Akka.HealthCheck/Transports/ReadinessTransportActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ReadinessTransportActor(IStatusTransport statusTransport, ImmutableDictio
try
{
if (_logInfo)
_log.Info("Received readiness status from probe [{0}]. Ready: {1}, Message: {2}", probeName,
_log.Debug("Received readiness status from probe [{0}]. Ready: {1}, Message: {2}", probeName,
status.IsReady, status.StatusMessage);

_statuses[probeName] = status;
Expand Down