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

Allow chain-index to print silently. #401

Merged
merged 2 commits into from
May 12, 2022
Merged

Allow chain-index to print silently. #401

merged 2 commits into from
May 12, 2022

Conversation

zmrocze
Copy link
Contributor

@zmrocze zmrocze commented Apr 6, 2022

description

Pr adds a new definition Plutus.ChainIndex.App (runMainWithLog) allowing to run chain-index with different function to do startup logs and refactors runMain to use this definition. This is a tiny commit.

explanation

In plutip - a tool to spin up a testnet and run contracts - we call chain-index's main function (from code with runMain) as one of the components. It does logging at startup to stdout and these logs get mixed up with the rest of the logs. Running it in a new process is troublesome, so I am asking if I could just add this small change to chain-index itself.

Commit adds a new definition `Plutus.ChainIndex.App (runMainWithLog)` allowing to run chain-index with different function to do startup logs.
@koslambrou
Copy link
Contributor

Only the logs when starting the chain-index bother you and not the syncing logs?

@zmrocze
Copy link
Contributor Author

zmrocze commented Apr 7, 2022

I missed the syncing logs, thanks. They bother me as well, but these are logged using proper logging machinery so I hope I can silence them with different logConfig. These originate from processEventsQueue. Failed to define right logConfig today.

@zmrocze
Copy link
Contributor Author

zmrocze commented Apr 10, 2022

I fixed the formatting. Could we run workflows and possibly merge afterwards?

@szg251
Copy link
Contributor

szg251 commented May 9, 2022

@koslambrou Hey! I'm just wondering, could this PR be reviewed and merged?

@koslambrou koslambrou merged commit 27820e5 into IntersectMBO:main May 12, 2022
koslambrou pushed a commit that referenced this pull request Jun 22, 2022
* Allow chain-index to print silently.

Commit adds a new definition `Plutus.ChainIndex.App (runMainWithLog)` allowing to run chain-index with different function to do startup logs.
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