mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 09:38:09 +01:00
print log if error occurs
This commit is contained in:
parent
a2b6355fb5
commit
1018991312
@ -69,7 +69,11 @@ func (n *NotificationHandler) Post() {
|
||||
user = "anonymous"
|
||||
}
|
||||
|
||||
go dao.AccessLog(user, project, repository, tag, action)
|
||||
go func() {
|
||||
if err := dao.AccessLog(user, project, repository, tag, action); err != nil {
|
||||
log.Errorf("failed to add access log: %v", err)
|
||||
}
|
||||
}()
|
||||
if action == "push" || action == "delete" {
|
||||
go func() {
|
||||
if err := cache.RefreshCatalogCache(); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user