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

CBG-3813 add insertion strings to capture stdout/stderr #6719

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Conversation

torcolvin
Copy link
Collaborator

Stderr/stdout are logged from https://github.com/couchbase/sync_gateway/blob/release/3.1.3/service/sg-windows/sg-service/sg-service.go#L55 which forwards events to the windows event log.

It will return Message as Incorrect Function as per golang/go#45086. A proposal to fix the code in golang.org/x/sys/windows/svc/eventlog is in golang/go#59780 but it would be hard to implement for our use case.

I left Message field present in case it is useful, which it might be for events that are not Sync Gateway events. I could drop it for make_event_log_task_sg_info because Incorrect Function looks like an error but it is not.

@torcolvin torcolvin merged commit dd3f092 into master Mar 7, 2024
30 checks passed
@torcolvin torcolvin deleted the CBG-3813 branch March 7, 2024 00:22
bbrks pushed a commit that referenced this pull request Mar 28, 2024
* CBG-3813 add insertion strings to capture stdout/stderr
* Remove Message which is always going to say Incorrect function
bbrks pushed a commit that referenced this pull request May 1, 2024
…err (#6719)

* CBG-3813 add insertion strings to capture stdout/stderr
* Remove Message which is always going to say Incorrect function
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