-
Notifications
You must be signed in to change notification settings - Fork 499
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 captive-core error reporting #2669
Comments
I wonder if we should create a new union used for Core-Horizon communication instead of sending union CaptiveMessage switch (CaptiveMessageType type)
{
case ERROR_MSG:
Error error;
case SYNC_PROGRESS:
int percent;
case META:
LedgerCloseMeta meta;
} This way we can get errors via pipe instead of parsing stellar-core logs. Will forward this to stellar-core team. |
I'm reopening this. I think it's worth adding Stellar-Core logs to Horizon log but wrap it in our log format. This way we can add labels (I propose |
I'd be cautious about identifying specific critical errors. It couples Horizon to stellar-core's log format, which is not a formal API and could change at any time (and silently stop reporting in our logs). |
We won't do that. We are going to keep Core log together with Horizon log. |
If the captive core fails to start for whatever reason, the relevant error isn't printed and a parsing error is printed instead:
In this case, the relevant error was:
which wasn't printed out until enabling logging (uncommenting the following lines):
go/exp/ingest/ledgerbackend/stellar_core_runner.go
Lines 62 to 76 in 05bc2ca
We should also print out errors with proper formatting (i.e. the same logging format as the rest of horizon messages)
The text was updated successfully, but these errors were encountered: