Skip to content
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

improve logs #611

Merged
merged 7 commits into from
Jul 5, 2024
Merged

improve logs #611

merged 7 commits into from
Jul 5, 2024

Conversation

arner
Copy link
Contributor

@arner arner commented Jul 2, 2024

No description provided.

@arner arner requested a review from adecaro July 2, 2024 15:11
Copy link
Contributor

@adecaro adecaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please, just address the comments left.

@@ -190,17 +190,17 @@ func registerRWSetLoaderHandlerProviders(in struct {
for _, network := range in.CoreConfig.Names() {
fsn, err := in.FSNProvider.FabricNetworkService(network)
if err != nil {
return fmt.Errorf("could not find network service for %s", network)
return fmt.Errorf("could not find network service for %s: %w", network, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, Arne, given that you are changing this, could replace fmt with the package github.com/hyperledger-labs/fabric-smart-client/pkg/utils/errors. Thanks.

@@ -25,7 +25,7 @@ const sqlitePragmas = `

const driverName = "sqlite"

var logger = flogging.MustGetLogger("postgres-db")
var logger = flogging.MustGetLogger("sqlite-db")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, can you add the prefix view-sdk.db.<the rest>, so we can catch it more easily when setting the logs level.

arner added 7 commits July 5, 2024 15:15
Signed-off-by: Arne Rutjes <arne123@gmail.com>
Signed-off-by: Arne Rutjes <arne123@gmail.com>
Signed-off-by: Arne Rutjes <arne123@gmail.com>
Signed-off-by: Arne Rutjes <arne123@gmail.com>
Signed-off-by: Arne Rutjes <arne123@gmail.com>
Signed-off-by: Arne Rutjes <arne123@gmail.com>
Signed-off-by: Arne Rutjes <arne123@gmail.com>
@arner arner merged commit 1a9e2f5 into main Jul 5, 2024
4 checks passed
@arner arner deleted the f-improve-logs branch July 5, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants