Public Access
43 lines
1.5 KiB
C#
43 lines
1.5 KiB
C#
namespace DodoSSH.Api.Features.Sync;
|
|
|
|
/// <summary>Source-generated log messages for sync.</summary>
|
|
/// <remarks>
|
|
/// Deliberately records ids, versions and counts only. Payloads are ciphertext, but their sizes and
|
|
/// access patterns still leak, and there is no diagnostic value in them.
|
|
/// </remarks>
|
|
internal static partial class SyncLog
|
|
{
|
|
[LoggerMessage(
|
|
EventId = 2001,
|
|
Level = LogLevel.Information,
|
|
Message = "Push conflict on item {EntityId}: client expected version {ExpectedVersion}, "
|
|
+ "server holds {ServerVersion}.")]
|
|
internal static partial void PushConflict(
|
|
ILogger logger,
|
|
Guid entityId,
|
|
int? expectedVersion,
|
|
int? serverVersion);
|
|
|
|
[LoggerMessage(
|
|
EventId = 2002,
|
|
Level = LogLevel.Information,
|
|
Message = "Applied {AppliedCount} of {OperationCount} operation(s) to vault {VaultId}.")]
|
|
internal static partial void PushApplied(
|
|
ILogger logger,
|
|
int appliedCount,
|
|
int operationCount,
|
|
Guid vaultId);
|
|
|
|
[LoggerMessage(
|
|
EventId = 2003,
|
|
Level = LogLevel.Information,
|
|
Message = "Collected {Count} expired tombstone(s) and superseded change-log entries.")]
|
|
internal static partial void Collected(ILogger logger, int count);
|
|
|
|
[LoggerMessage(
|
|
EventId = 2004,
|
|
Level = LogLevel.Warning,
|
|
Message = "Tombstone collection failed; it will run again at the next interval.")]
|
|
internal static partial void CollectionFailed(ILogger logger, Exception exception);
|
|
}
|