-
Notifications
You must be signed in to change notification settings - Fork 389
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
feat: standardize logging #1302
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
72f96cc
Initial slog switch
zivkovicmilos 9328f52
Change log level
zivkovicmilos 3abfc67
Merge branch 'feat/standardized-logging' into feat/log
zivkovicmilos a4449bd
Drop the logger backend in tm2
zivkovicmilos c08de43
Use custom zap config
zivkovicmilos 035bbef
Use log level from config
zivkovicmilos e6dd5ac
Merge branch 'master' into feat/log
zivkovicmilos dec3fed
Update workflows
zivkovicmilos 9aa5d7d
Remove test case because of Go 1.21
zivkovicmilos 209041f
Resolve faulty log lines
zivkovicmilos 568ff80
Revert go version change
zivkovicmilos be13b5d
Merge master
zivkovicmilos b32ea84
Tidy go mods
zivkovicmilos 32603c2
Switch to /exp/log because of go 1.20
zivkovicmilos 71787aa
Update gnodev logger usage:
zivkovicmilos 28bebde
Please the go mod gods
zivkovicmilos 5db0ddb
Add logger err case
zivkovicmilos 13fefe7
Merge branch 'master' into feat/log
zivkovicmilos 33f1934
fix: use zap logger specific initialization
gfanton 75c7285
Resolve API changes
zivkovicmilos f23782f
Tidy loop go mod
zivkovicmilos 655557b
Lowercase log format
zivkovicmilos c8b6d54
Move github.com/kr/pretty into indirect deps
zivkovicmilos db969ac
Move golang.org/x/exp into direct deps
zivkovicmilos a39674b
Remove duplicate defer
zivkovicmilos 1c29d7c
Add import cleanup directive
zivkovicmilos a8e0dce
Move block to indirect imports; add mod linter
zivkovicmilos fe5f770
Remove leftover message from go.mods
zivkovicmilos 4130b15
Add goimports CI
zivkovicmilos 34e4087
Update gno.land/pkg/sdk/vm/keeper.go
zivkovicmilos d66b6f7
Update gno.land/pkg/sdk/vm/keeper.go
zivkovicmilos c3cd030
Merge branch 'master' into feat/log
zivkovicmilos 795fe67
Make the linting gods happy
zivkovicmilos 6779dc6
Merge branch 'master' into feat/log
zivkovicmilos 01e4fd5
Add testing logger
zivkovicmilos 6471c93
Tidy go mods
zivkovicmilos 86ad349
Output the log to a dir
zivkovicmilos 9e45196
Update workflows
zivkovicmilos 301409a
fix: workflow debug env variable
gfanton 821c01d
fix: fixup gnoland logs
gfanton 09d3ec0
fix(ci): glob every log file into the artifact archive
gfanton de264d4
wip: test ci full logging
gfanton 6b9230c
fix(log): replace slash by _ in log name to avoid sub-directory
gfanton 27e2383
Enable debug artifacts
zivkovicmilos bac025e
Merge branch 'master' into feat/log
zivkovicmilos 7eb92d2
Merge goimports format with 'fmt'
zivkovicmilos 7720593
Update fmt CI
zivkovicmilos a8fe8d3
Update tidy workflow
zivkovicmilos 9ab96d0
Simplify tidy workflows
zivkovicmilos 89c7b62
Add basic base config verification
zivkovicmilos 18727d8
Merge branch 'master' into feat/log
zivkovicmilos 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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script finds and tidies all go.mod | ||
# files recursively from the repository root | ||
|
||
set -e # exit on error | ||
|
||
# CD into the repo root | ||
cd .. | ||
|
||
# Find all go.mod files | ||
gomods=$(find . -type f -name go.mod) | ||
|
||
# Tidy each go.mod file | ||
for modfile in $gomods; do | ||
dir=$(dirname "$modfile") | ||
|
||
# Run go mod tidy in the directory | ||
(cd "$dir" && go mod tidy -v) || exit 1 | ||
done |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please double-check? I vaguely recall creating something similar, possibly only in the CI. Just ensure that there isn't already an existing solution for the same purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out we had not 1, but 2 tidy flows 🙂
Fixed:
9ab96d0 and a8fe8d3