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

Add logger (ibc-go v7) #92

Merged
merged 47 commits into from
Sep 6, 2023
Merged

Add logger (ibc-go v7) #92

merged 47 commits into from
Sep 6, 2023

Conversation

dongrie
Copy link
Contributor

@dongrie dongrie commented Jul 6, 2023

Add logger(zap)

Messages and information such as transactions can now be viewed when an error occurs.

before

before

after

alter

Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
@dongrie dongrie requested a review from a team as a code owner July 6, 2023 07:50
Signed-off-by: Dongri Jin <[email protected]>
@siburu

This comment was marked as outdated.

cmd/query.go Outdated Show resolved Hide resolved
cmd/query.go Outdated Show resolved Hide resolved
core/channel.go Outdated Show resolved Hide resolved
@dongrie dongrie closed this Jul 19, 2023
@dongrie dongrie force-pushed the add-logger branch 2 times, most recently from 85e3d29 to d0de4f8 Compare July 19, 2023 02:19
@dongrie dongrie reopened this Jul 19, 2023
logger/zap.go Outdated Show resolved Hide resolved
@siburu

This comment was marked as resolved.

@dongrie

This comment was marked as resolved.

@dongrie dongrie requested a review from siburu July 25, 2023 00:56
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
logger/zap.go Outdated Show resolved Hide resolved
logger/zap.go Outdated Show resolved Hide resolved
logger/zap.go Outdated Show resolved Hide resolved
logger/zap.go Outdated Show resolved Hide resolved
core/connection.go Outdated Show resolved Hide resolved
core/connection.go Outdated Show resolved Hide resolved
@dongrie dongrie requested a review from siburu August 25, 2023 05:30
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
Signed-off-by: Dongri Jin <[email protected]>
cmd/root.go Outdated Show resolved Hide resolved
log/slog.go Outdated Show resolved Hide resolved
core/client.go Outdated Show resolved Hide resolved
core/connection.go Outdated Show resolved Hide resolved
core/connection.go Outdated Show resolved Hide resolved
core/config.go Outdated Show resolved Hide resolved
log/slog.go Outdated Show resolved Hide resolved
core/naive-strategy.go Show resolved Hide resolved
core/relayMsgs.go Outdated Show resolved Hide resolved
core/service.go Show resolved Hide resolved
siburu and others added 9 commits August 31, 2023 14:27
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
Signed-off-by: Masanori Yoshida <[email protected]>
@siburu siburu self-requested a review September 5, 2023 07:57
core/channel.go Outdated Show resolved Hide resolved
core/connection.go Outdated Show resolved Hide resolved
Signed-off-by: Dongri Jin <[email protected]>
@siburu siburu requested a review from bluele September 6, 2023 01:15
Copy link
Contributor

@siburu siburu left a comment

Choose a reason for hiding this comment

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

LGTM.

@bluele May I ask you to review this as well?

log/slog.go Outdated Show resolved Hide resolved
src.ChainID(), src.Path().ClientID, src.Path().ConnectionID,
dst.ChainID(), dst.Path().ClientID, dst.Path().ConnectionID)
logger.Info(
"★ Connection created",
Copy link
Member

Choose a reason for hiding this comment

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

Is the lack of connection details deliberate?

Copy link
Contributor

Choose a reason for hiding this comment

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

@bluele (cc @dongrie )
The logger create by GetConnectionPairLogger() automatically adds information of src/dst connections.

core/channel.go Outdated Show resolved Hide resolved
* Fix incorrect log
* Array append Optimization 

Signed-off-by: Dongri Jin <[email protected]>
@dongrie dongrie requested a review from bluele September 6, 2023 07:43
Signed-off-by: Dongri Jin <[email protected]>
Copy link
Member

@bluele bluele left a comment

Choose a reason for hiding this comment

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

LGTM👍 @dongrie @siburu

@siburu siburu merged commit a75f344 into hyperledger-labs:main Sep 6, 2023
6 checks passed
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.

3 participants