Browse Source

Better logging?

pull/65/head
Sebastian Stehle 9 years ago
parent
commit
0f61a3a0fc
  1. 3
      src/Squidex.Infrastructure.Redis/RedisSubscription.cs
  2. 2
      src/Squidex.Infrastructure/Caching/InvalidatingMemoryCache.cs

3
src/Squidex.Infrastructure.Redis/RedisSubscription.cs

@ -80,6 +80,8 @@ namespace Squidex.Infrastructure.Redis
log.LogDebug(w => w
.WriteProperty("action", "ReceiveRedisMessage")
.WriteProperty("channel", channelName)
.WriteProperty("token", token)
.WriteProperty("state", "Received"));
}
}
@ -87,6 +89,7 @@ namespace Squidex.Infrastructure.Redis
{
log.LogError(ex, w => w
.WriteProperty("action", "ReceiveRedisMessage")
.WriteProperty("channel", channelName)
.WriteProperty("state", "Failed"));
}
}

2
src/Squidex.Infrastructure/Caching/InvalidatingMemoryCache.cs

@ -51,7 +51,7 @@ namespace Squidex.Infrastructure.Caching
{
if (key is string)
{
invalidator.Publish(ChannelName, key.ToString(), false);
invalidator.Publish(ChannelName, key.ToString(), true);
}
}
}

Loading…
Cancel
Save