-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Refactor Router Logger #17308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Refactor Router Logger #17308
Changes from 30 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
81fc293
introduce router log handler v2
wxiaoguang 1bedc91
Merge branch 'main' into optimize-logger
wxiaoguang 9a7017e
add comment about performance
wxiaoguang 298c1b9
Merge branch 'main' into optimize-logger
wxiaoguang ce63306
fix
wxiaoguang 5f67c98
Merge branch 'main' into optimize-logger
wxiaoguang 3942088
Merge remote-tracking branch 'origin/main' into optimize-logger
zeripath 22b13f2
Add some comments and a test
zeripath be8af1a
apply suggestion
wxiaoguang a485d9d
Merge branch 'optimize-logger' of github.com:wxiaoguang/gitea into op…
wxiaoguang 32a6690
Merge remote-tracking branch 'go-gitea/main' into optimize-logger
wxiaoguang af90a2c
Merge branch 'main' into optimize-logger
wxiaoguang fd46839
Merge branch 'main' into optimize-logger
wxiaoguang ebaee13
Merge branch 'main' into optimize-logger
wxiaoguang 2f40634
Merge branch 'main' into optimize-logger
wxiaoguang ffc86fb
Merge remote-tracking branch 'zeripath/optimize-logger' into optimize…
wxiaoguang 3eff51e
tune comments
wxiaoguang cca722c
we can use `time.NewTicker` safely and it reduces memory allocations.
wxiaoguang 05de541
tune tests
wxiaoguang 90ce83c
Merge branch 'main' into optimize-logger
wxiaoguang e7a5b6f
Merge branch 'main' into optimize-logger
wxiaoguang 84768f6
Merge branch 'main' into optimize-logger
wxiaoguang a3de079
Merge branch 'main' into optimize-logger
wxiaoguang e3e212d
Merge branch 'main' into optimize-logger
wxiaoguang 354127e
Merge remote-tracking branch 'go-gitea/main' into optimize-logger
wxiaoguang a0bc540
Merge branch 'main' into optimize-logger
wxiaoguang 3bddad9
Merge branch 'main' into optimize-logger
wxiaoguang c2032bd
Fix merge
wxiaoguang afd3200
make the duration more readable
wxiaoguang 90ead72
Merge branch 'main' into optimize-logger
wxiaoguang c92c4e9
Merge branch 'main' into optimize-logger
wxiaoguang f5332d8
Merge branch 'main' into optimize-logger
wxiaoguang 8dafc18
show "started" message in DEBUG level, show long-polling message
wxiaoguang 7a743f1
Merge branch 'main' into optimize-logger
wxiaoguang cb989fe
fix lint
wxiaoguang 81ca64a
add comment
wxiaoguang bce0875
better format
wxiaoguang 65a48bd
Generate FuncInfo outside of handlers and pre-wrap handlers
zeripath 24760ed
Update messages
zeripath 142957f
ourHandlerFunc -> wrappedHandlerFunc
zeripath e506e3e
move wrap to web
zeripath 4836f06
Remove IsEnabledOn
zeripath bf08538
Move the requestrecord infrastructure to modules/web/routing
zeripath d3e6ded
Merge pull request #3 from zeripath/optimize-logger
wxiaoguang 37d7928
fix comment for logger v1
wxiaoguang 6d14aac
Improve app.example.ini and document, refactor wrap and router logger
wxiaoguang a284f30
fix documents and comments
wxiaoguang 34ddd09
Merge branch 'main' into optimize-logger
wxiaoguang 9f34791
fix log.ACCESS
wxiaoguang f7fe8a7
revert document
wxiaoguang 78afbc0
Merge branch 'main' into optimize-logger
wxiaoguang 4cb7e03
Remove logger v1
zeripath f0d5559
Merge pull request #5 from zeripath/optimize-logger-no-logger-v1
wxiaoguang 00da10b
Merge branch 'main' into optimize-logger
wxiaoguang 8d143fe
fix broken conflicts resolution
zeripath 3e77481
Merge branch 'main' into optimize-logger
wxiaoguang f2cfdcf
Use TRACE level to show router started message
wxiaoguang 5a39871
Fix document
wxiaoguang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.