Skip to content

chore: add startup logging to start-with-config-file path#2709

Merged
barakeinav1 merged 1 commit intomainfrom
barak/startup-logging
Apr 7, 2026
Merged

chore: add startup logging to start-with-config-file path#2709
barakeinav1 merged 1 commit intomainfrom
barak/startup-logging

Conversation

@barakeinav1
Copy link
Copy Markdown
Contributor

@barakeinav1 barakeinav1 commented Apr 5, 2026

Summary

The start-with-config-file code path (used by the Rust launcher) had minimal logging at startup. When the node crashed on attestation, there was no context about version, config, or TEE mode.

Adds startup logs:

  • MPC node version string
  • Account ID, contract ID, home dir, web UI address
  • TEE authority type (Dstack/Local) and image hash
  • NEAR init config (chain_id, boot_nodes, download_genesis)

These appear immediately after logging is initialized, before the attestation attempt.

Closes #2708

Test plan

  • CI passes
  • Deploy with Rust launcher and verify startup logs appear before attestation

@claude
Copy link
Copy Markdown

claude bot commented Apr 5, 2026

Code Review: No critical issues found

Clean, minimal change that adds useful startup logging right after logging initialization. The logged fields (account ID, contract ID, home dir, web UI address, TEE authority, image hash, NEAR init config) are all operational metadata appropriate for logs — no secrets or sensitive data exposed.

✅ Approved

Log version, account, contract, TEE authority, and NEAR init config
at startup before the attestation attempt. This provides context for
debugging when the node crashes early.

Closes #2708
@barakeinav1 barakeinav1 force-pushed the barak/startup-logging branch from 5759ec1 to 45c9e96 Compare April 5, 2026 17:19
Copy link
Copy Markdown
Contributor

@gilcu3 gilcu3 left a comment

Choose a reason for hiding this comment

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

Thanks

@barakeinav1 barakeinav1 added this pull request to the merge queue Apr 7, 2026
Merged via the queue into main with commit 83ae37e Apr 7, 2026
31 checks passed
@barakeinav1 barakeinav1 deleted the barak/startup-logging branch April 7, 2026 12:00
Copilot AI pushed a commit that referenced this pull request Apr 8, 2026
Co-authored-by: netrome <22524681+netrome@users.noreply.github.com>
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.

chore: add startup logging to start-with-config-file code path

3 participants