Skip to content

Fix Lwt_fmt.stderr to actually point to stderr instead of stdout (#850) - #852

Merged
raphael-proust merged 1 commit into
ocsigen:masterfrom
m-click:fix-lwtfmt-stderr
Apr 30, 2021
Merged

raphael-proust merged 1 commit into
ocsigen:masterfrom
m-click:fix-lwtfmt-stderr

Conversation

@vog

@vog vog commented Apr 21, 2021

Copy link
Copy Markdown
Contributor

Fix Lwt_fmt.stderr to actually point to stderr instead of stdout.

This fixes #850.

@Drup Drup left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

(I'm slightly ashamed 🥺)

Maybe add a test ?

@raphael-proust

Copy link
Copy Markdown
Collaborator

Maybe add a test ?

A test might be good, but it's not obvious how to add it. The only tests that touch stdout/stderr are for Lwt_io and they are tests for servers and connections.

I'd be ok merging this without a test. I'll leave this open for now so the discussion can continue for a bit on that topic.

@raphael-proust

Copy link
Copy Markdown
Collaborator

If you have the time, can you add the following diff? (I couldn't push to your repo/branch directly.) If not it's ok, I'll add it when doing the release.

diff --git a/CHANGES b/CHANGES
index 67f9ad454..aa7540df0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,10 @@

   * Lwt_seq: a Seq-like data-structure with Lwt delayed nodes (#836, Zach Shipko).

+====== Bugfixes ======
+
+  * Fix Lwt_fmt.stderr to actually point to stderr (#852, #850, Volker Diels-Grabsch).
+
 ===== 5.4.0 (2020-12-16) =====

 ====== Installability ======

@vog

vog commented Apr 26, 2021

Copy link
Copy Markdown
Contributor Author

Will there be an immediate bugfix release of Lwt as soon as this fix ran successfully through CI/CD, or do you collect for fixes before releasing? In the latter case: When will the schedule for the next bugfix release?

@vog
vog force-pushed the fix-lwtfmt-stderr branch from 4671b5f to e9a66e9 Compare April 26, 2021 11:42
@raphael-proust

Copy link
Copy Markdown
Collaborator

I'm tempted to make a bugfix release for that. I'll check with the other maintainers and come back to you.

@avsm

avsm commented Apr 28, 2021

Copy link
Copy Markdown
Collaborator

Agreed, let's do a bugfix release for this.

@raphael-proust
raphael-proust merged commit 2685ce0 into ocsigen:master Apr 30, 2021
@raphael-proust

Copy link
Copy Markdown
Collaborator

I'll make the release this week.

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.

Lwt_fmt.eprintf prints to stdout instead of stderr

4 participants