Skip to content

Commit

Permalink
Added Truncate for audit logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalkan committed Mar 25, 2015
1 parent 303c5d5 commit e2f6b33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Abp.Zero/Auditing/AuditLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/Abp.Zero/Zero/AbpZeroCoreModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class AbpZeroCoreModule : AbpModule
/// <summary>
/// Current version of the zero module.
/// </summary>
public const string CurrentVersion = "0.5.12.1";
public const string CurrentVersion = "0.5.12.2";

public override void PreInitialize()
{
Expand Down

0 comments on commit e2f6b33

Please sign in to comment.