|
|
|
@ -58,14 +58,14 @@ namespace Volo.Abp.AuditLogging |
|
|
|
Id = guidGenerator.Create(); |
|
|
|
TenantId = auditInfo.TenantId; |
|
|
|
UserId = auditInfo.UserId; |
|
|
|
UserName = auditInfo.UserName; |
|
|
|
UserName = auditInfo.UserName.Truncate(AuditLogConsts.MaxUserNameLength); |
|
|
|
ExecutionTime = auditInfo.ExecutionTime; |
|
|
|
ExecutionDuration = auditInfo.ExecutionDuration; |
|
|
|
ClientIpAddress = auditInfo.ClientIpAddress; |
|
|
|
ClientIpAddress = auditInfo.ClientIpAddress.Truncate(AuditLogConsts.MaxClientIpAddressLength); |
|
|
|
ClientName = auditInfo.ClientName.Truncate(AuditLogConsts.MaxClientNameLength); |
|
|
|
BrowserInfo = auditInfo.BrowserInfo.Truncate(AuditLogConsts.MaxBrowserInfoLength); |
|
|
|
HttpMethod = auditInfo.HttpMethod; |
|
|
|
Url = auditInfo.Url; |
|
|
|
HttpMethod = auditInfo.HttpMethod.Truncate(AuditLogConsts.MaxHttpMethodLength); |
|
|
|
Url = auditInfo.Url.Truncate(AuditLogConsts.MaxUrlLength); |
|
|
|
HttpStatusCode = auditInfo.HttpStatusCode; |
|
|
|
ImpersonatorUserId = auditInfo.ImpersonatorUserId; |
|
|
|
ImpersonatorTenantId = auditInfo.ImpersonatorTenantId; |
|
|
|
|