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

Decide what to do about missing logging flags for the start sub-command #9

Closed
evan-forbes opened this issue Jan 25, 2021 · 3 comments · Fixed by #11
Closed

Decide what to do about missing logging flags for the start sub-command #9

evan-forbes opened this issue Jan 25, 2021 · 3 comments · Fixed by #11
Assignees

Comments

@evan-forbes
Copy link
Member

evan-forbes commented Jan 25, 2021

Logging has been refactored in the cosmos-sdk. Starport apps have yet to be updated accordingly, so these flags have to be manually added to the start sub-command in order to pass the logging configurations to lazyledger-core.

I see two very easy solutions to this, we could

  1. add the flags to the start cmd in the lazyledger fork of the cosmos-sdk
  2. add the flags outside of the sdk in the lazyledger-app
  3. Something else that I'm not seeing (@marbar3778 @liamsi)

Ideally, we would add them to the cosmos-sdk, right next to other start sub-command flags. However, any changes we make to the sdk will have to be undone each time we upstream anything.

@evan-forbes evan-forbes self-assigned this Jan 25, 2021
@tac0turtle
Copy link
Contributor

Weird. I always assumed it was there. On tendermint we have this as a global flag on the start cmd. I dont have a preference, whichever is easiest.

We should open an issue on the cosmos-sdk to add support this as well. If you decide to add it on the sdk side you can also look at upstreaming the change.

@liamsi
Copy link
Member

liamsi commented Jan 25, 2021

@evan-forbes
Copy link
Member Author

evan-forbes commented Jan 25, 2021

Ok, I found out exactly what was wrong after talking with @liamsi and a little more digging. The cosmos-sdk is adding the flags when calling Execute. The lazyledger-app call's its own Execute. Therefore, it makes sense to add the flags to the lazyledger-app's Execute function in the same fashion. This was changed in starport v0.13.2, so we don't need to upstream anything.

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 a pull request may close this issue.

3 participants