mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-12 05:58:23 +02: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"
|
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" {
|
if action == "push" || action == "delete" {
|
||||||
go func() {
|
go func() {
|
||||||
if err := cache.RefreshCatalogCache(); err != nil {
|
if err := cache.RefreshCatalogCache(); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user