-
Notifications
You must be signed in to change notification settings - Fork 50
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
improve logs #611
Conversation
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.
LGTM, please, just address the comments left.
platform/fabric/sdk/dig/sdk.go
Outdated
@@ -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) |
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.
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") |
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.
Please, can you add the prefix view-sdk.db.<the rest>
, so we can catch it more easily when setting the logs level.
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>
No description provided.