You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeripath be666b03ee Trace Logging on Permission Denied & ColorFormat (#6618)
* Add log.ColorFormat and log.ColorFormatted

Structs can now implement log.ColorFormatted to provide their own
colored format when logged with `%-v` or additional flags.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add basic ColorFormat to repository and user

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add basic ColorFormat to access and unit

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add ColorFormat to permission and on trace log it

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add log.NewColoredIDValue to make ID value coloring consistent

Signed-off-by: Andrew Thornton <art27@cantab.net>

* formatting changes

* Add some better tracing to permission denied for read issues/pulls

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add Trace logging on permission denied

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Remove isTrace() check from deferred func

* Adjust repo and allow logging of team

* use FormatInt instead of Itoa

* Add blank line

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update access.go
5 years ago
..
blob.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago
branch.go Improve listing performance by using go-git (#6478) 5 years ago
collaborators.go Updates to API 404 responses (#6077) 5 years ago
commits.go Change summary to full message (#6591) 5 years ago
file.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago
fork.go Restrict permission check on repositories and fix some problems (#5314) 6 years ago
git_hook.go Add API for manipulating Git hooks (#6436) 5 years ago
git_ref.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
hook.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
hook_test.go API endpoint for testing webhook (#3550) 6 years ago
issue.go Updates to API 404 responses (#6077) 5 years ago
issue_comment.go Comments list performance optimization (#5305) 5 years ago
issue_label.go Updates to API 404 responses (#6077) 5 years ago
issue_tracked_time.go Updates to API 404 responses (#6077) 5 years ago
key.go Updates to API 404 responses (#6077) 5 years ago
label.go Updates to API 404 responses (#6077) 5 years ago
main_test.go API endpoint for testing webhook (#3550) 6 years ago
milestone.go Updates to API 404 responses (#6077) 5 years ago
pull.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
release.go Updates to API 404 responses (#6077) 5 years ago
release_attachment.go fix upload attachments (#6481) 5 years ago
repo.go Better logging (#6038) (#6095) 5 years ago
star.go refactor: import order. (#3736) 6 years ago
status.go refactor: import order. (#3736) 6 years ago
subscriber.go refactor: import order. (#3736) 6 years ago
tag.go Add API to list tags (#5850) 5 years ago
tree.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago