mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 01:34:27 +00:00 
			
		
		
		
	Backport #18626 This is an unnecessary logging event. Fix #18616 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		@@ -22,6 +22,9 @@ func GetNote(ctx context.Context, repo *Repository, commitID string, note *Note)
 | 
				
			|||||||
	log.Trace("Searching for git note corresponding to the commit %q in the repository %q", commitID, repo.Path)
 | 
						log.Trace("Searching for git note corresponding to the commit %q in the repository %q", commitID, repo.Path)
 | 
				
			||||||
	notes, err := repo.GetCommit(NotesRef)
 | 
						notes, err := repo.GetCommit(NotesRef)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 | 
							if IsErrNotExist(err) {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		log.Error("Unable to get commit from ref %q. Error: %v", NotesRef, err)
 | 
							log.Error("Unable to get commit from ref %q. Error: %v", NotesRef, err)
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,6 +21,9 @@ func GetNote(ctx context.Context, repo *Repository, commitID string, note *Note)
 | 
				
			|||||||
	log.Trace("Searching for git note corresponding to the commit %q in the repository %q", commitID, repo.Path)
 | 
						log.Trace("Searching for git note corresponding to the commit %q in the repository %q", commitID, repo.Path)
 | 
				
			||||||
	notes, err := repo.GetCommit(NotesRef)
 | 
						notes, err := repo.GetCommit(NotesRef)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 | 
							if IsErrNotExist(err) {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		log.Error("Unable to get commit from ref %q. Error: %v", NotesRef, err)
 | 
							log.Error("Unable to get commit from ref %q. Error: %v", NotesRef, err)
 | 
				
			||||||
		return err
 | 
							return err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user