Skip to content

Commit

Permalink
feat: 记录下载的文件大小到审计日志 #2718
Browse files Browse the repository at this point in the history
* feat: 记录下载的文件大小到审计日志 #2718

* feat: 记录下载的文件大小到审计日志 #2718
  • Loading branch information
cnlkl authored Oct 31, 2024
1 parent 191d22b commit 63170dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ class ArtifactDownloadListener(
data[SHA256] = node.sha256 ?: StringPool.EMPTY
data[SHARE_USER_ID] = context.shareUserId
data[USER_AGENT] = request?.getHeader(HttpHeaders.USER_AGENT) ?: StringPool.EMPTY
data[SIZE] = node.size
return NodeDownloadedEvent(
projectId = node.projectId,
repoName = node.repoName,
Expand All @@ -244,5 +245,6 @@ class ArtifactDownloadListener(
private const val SHA256 = "sha256"
private const val SHARE_USER_ID = "shareUserId"
private const val USER_AGENT = "userAgent"
private const val SIZE = "size"
}
}

0 comments on commit 63170dc

Please sign in to comment.