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(logger) send logs to aws #1030

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat(logger) send logs to aws #1030

wants to merge 1 commit into from

Conversation

mihhu
Copy link
Member

@mihhu mihhu commented Aug 23, 2023

No description provided.

@mihhu mihhu requested a review from saghul August 23, 2023 10:17
Copy link
Member

@saghul saghul left a comment

Choose a reason for hiding this comment

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

1 minor comment, but also a larger one: how is the app going to know about the logging details?

spot-electron/src/logger/utils.js Show resolved Hide resolved
@@ -28,6 +29,12 @@ require('./src/client-control');
require('./src/exit');
require('./src/volume-control');

process.env.USE_CLOUDWATCH_LOGS && awsLogger.maybeCreateLogStream()
Copy link
Member

Choose a reason for hiding this comment

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

How is the Electron app going to get these env variables?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was thinking that the person that installs the app can set up these too.

Copy link
Member

Choose a reason for hiding this comment

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

That won't work since the app is deployed fully packaged and the environment cannot be set just for that app, you'd need to launch it from the terminal or something.

I think the right thing to do is to use a JSON file which we can add in branding, and the code can read it from there.

Copy link
Member Author

Choose a reason for hiding this comment

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

How about the AWS credentials?

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