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

feat(synthetic-chain): Propagate environment variable SLOGFILE into containers #191

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

gibson042
Copy link
Member

@gibson042 gibson042 requested review from turadg and mhofman November 1, 2024 23:09
Comment on lines 8 to 13
let slogOpts = '';
const { SLOGFILE } = process.env;
if (SLOGFILE) {
execSync(`touch "$SLOGFILE"`);
slogOpts = `-e SLOGFILE -v "$SLOGFILE:${realpathSync(SLOGFILE)}"`;
}
Copy link
Member

Choose a reason for hiding this comment

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

Please DRY out producing slogOpts.

Have you considered making it an explicit option instead of an env var? Might help with discovery. Though you're probably the target user so I defer to however you want it to work.

Copy link
Member Author

Choose a reason for hiding this comment

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

Please DRY out producing slogOpts.

Done.

Have you considered making it an explicit option instead of an env var? Might help with discovery. Though you're probably the target user so I defer to however you want it to work.

I considered it, but there's a lot of layers to penetrate and I think I want this to be dynamically configurable. But it can always be added in the future.

Copy link
Member

@turadg turadg left a comment

Choose a reason for hiding this comment

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

Solid improvements! 🙏

@gibson042 gibson042 force-pushed the gibson-2024-11-propagate-slogfile branch from bed0caf to 41d8d15 Compare November 11, 2024 14:54
@gibson042 gibson042 merged commit 1be4ba3 into main Nov 11, 2024
2 checks passed
@gibson042 gibson042 deleted the gibson-2024-11-propagate-slogfile branch November 11, 2024 15:20
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