]> source.dussan.org Git - gitea.git/commit
Improve trace logging for pulls and processes (#22633) (#22812)
authorzeripath <art27@cantab.net>
Mon, 13 Feb 2023 03:17:36 +0000 (03:17 +0000)
committerGitHub <noreply@github.com>
Mon, 13 Feb 2023 03:17:36 +0000 (11:17 +0800)
commite4238583db1647e05d0d664e5b2adae80b6270dc
tree5b2eff60cb312cfe1955a79841091e1c9aa94e2e
parent656d5a144fa4185b203e5e4d033e829449f9f6d1
Improve trace logging for pulls and processes (#22633) (#22812)

Backport #22633

Our trace logging is far from perfect and is difficult to follow.

This PR:

* Add trace logging for process manager add and remove.
* Fixes an errant read file for git refs in getMergeCommit
* Brings in the pullrequest `String` and `ColorFormat` methods
introduced in #22568
* Adds a lot more logging in to testPR etc.

Ref #22578

---------
Signed-off-by: Andrew Thornton <art27@cantab.net>
models/issues/pull.go
modules/log/colors.go
modules/log/log.go
modules/process/manager.go
modules/process/manager_test.go
routers/web/repo/pull.go
services/automerge/automerge.go
services/pull/check.go
services/pull/patch.go