Skip to content

p-token: Add error logging #41

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 4 commits into from
Mar 19, 2025
Merged

p-token: Add error logging #41

merged 4 commits into from
Mar 19, 2025

Conversation

febo
Copy link
Contributor

@febo febo commented Mar 14, 2025

Problem

Currently, p-token does not log an error message – this is different than the current SPL Token implementation.

Solution

Add error logging.

The PR also updates pinocchio dependencies to use the ToStr trait.

Base automatically changed from febo/fixtures to main March 14, 2025 16:37
pinocchio = { version = "0.7", git = "https://github.com/febo/pinocchio.git", branch = "febo/close-unstable" }
pinocchio-log = { version = "0.3", git = "https://github.com/febo/pinocchio.git", branch = "febo/close-unstable" }
pinocchio = "0.8"
pinocchio-log = { version = "0.4", default-features = false }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Disabling default features to avoid bringing the log macro dependencies – the macro is not used.

@febo febo marked this pull request as ready for review March 19, 2025 01:20
@febo febo requested a review from joncinque March 19, 2025 01:20
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great!

@febo febo merged commit 4c46748 into main Mar 19, 2025
15 checks passed
@febo febo deleted the febo/log-error branch March 19, 2025 10:51
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.

2 participants