diff --git a/src/Abp.Zero/Auditing/AuditLog.cs b/src/Abp.Zero/Auditing/AuditLog.cs index a895d9fd..a663eece 100644 --- a/src/Abp.Zero/Auditing/AuditLog.cs +++ b/src/Abp.Zero/Auditing/AuditLog.cs @@ -120,14 +120,14 @@ public static AuditLog CreateFromAuditInfo(AuditInfo auditInfo) { TenantId = auditInfo.TenantId, UserId = auditInfo.UserId, - ServiceName = auditInfo.ServiceName, - MethodName = auditInfo.MethodName, + ServiceName = auditInfo.ServiceName.Truncate(MaxServiceNameLength), + MethodName = auditInfo.MethodName.Truncate(MaxMethodNameLength), Parameters = auditInfo.Parameters.Truncate(MaxParametersLength), ExecutionTime = auditInfo.ExecutionTime, ExecutionDuration = auditInfo.ExecutionDuration, - ClientIpAddress = auditInfo.ClientIpAddress, - ClientName = auditInfo.ClientName, - BrowserInfo = auditInfo.BrowserInfo + ClientIpAddress = auditInfo.ClientIpAddress.Truncate(MaxClientIpAddressLength), + ClientName = auditInfo.ClientName.Truncate(MaxClientNameLength), + BrowserInfo = auditInfo.BrowserInfo.Truncate(MaxBrowserInfoLength) }; } diff --git a/src/Abp.Zero/Zero/AbpZeroCoreModule.cs b/src/Abp.Zero/Zero/AbpZeroCoreModule.cs index 64322652..14722a89 100644 --- a/src/Abp.Zero/Zero/AbpZeroCoreModule.cs +++ b/src/Abp.Zero/Zero/AbpZeroCoreModule.cs @@ -12,7 +12,7 @@ public class AbpZeroCoreModule : AbpModule /// /// Current version of the zero module. /// - public const string CurrentVersion = "0.5.12.1"; + public const string CurrentVersion = "0.5.12.2"; public override void PreInitialize() {