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
..
activity.go Restrict permission check on repositories and fix some problems (#5314) 6 years ago
attachment.go fix upload attachments (#6481) 5 years ago
blame.go Add option to blame files (#5721) 5 years ago
branch.go Delete local branch if it exists (#6497) 5 years ago
commit.go Unifies pagination template usage (#6531) (#6533) 5 years ago
download.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
editor.go Fix reversion caused by 6314 (#6685) 5 years ago
editor_test.go Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago
http.go Better logging (#6038) (#6095) 5 years ago
issue.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
issue_dependency.go Added dependencies for issues (#2196) (#2531) 6 years ago
issue_label.go Allow labels to contain emoji (#6063) 5 years ago
issue_label_test.go fix go vet error (#3740) 6 years ago
issue_lock.go Implement "conversation lock" for issue comments (#5073) 5 years ago
issue_stopwatch.go Automatically clear stopwatch on merging a PR (#4327) 5 years ago
issue_timetrack.go Handle refactor (#3339) 7 years ago
issue_watch.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 5 years ago
milestone.go Unifies pagination template usage (#6531) (#6533) 5 years ago
pull.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
pull_review.go Add comment replies (#5104) 6 years ago
release.go Unifies pagination template usage (#6531) (#6533) 5 years ago
release_test.go Fix missing branch in release bug (#3108) 7 years ago
repo.go Better logging (#6038) (#6095) 5 years ago
search.go Unifies pagination template usage (#6531) (#6533) 5 years ago
setting.go Correctly adjust mirror url (#6593) 5 years ago
setting_protected_branch.go Improve listing performance by using go-git (#6478) 5 years ago
settings_test.go An inactive user shouldn't be able to be added as a collaborator (#4535) 6 years ago
topic.go Better logging (#6038) (#6095) 5 years ago
view.go Unifies pagination template usage (#6531) (#6533) 5 years ago
webhook.go Add support for MS Teams webhooks (#6632) 5 years ago
wiki.go Trace Logging on Permission Denied & ColorFormat (#6618) 5 years ago
wiki_test.go Improve listing performance by using go-git (#6478) 5 years ago