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

logUseColor now defaults to False on Windows, even when verbose #133

Merged
merged 2 commits into from
Sep 27, 2018
Merged

logUseColor now defaults to False on Windows, even when verbose #133

merged 2 commits into from
Sep 27, 2018

Conversation

rkoeninger
Copy link
Contributor

Fixes #131

Simple change in logOptionsHandle. Updated the haddock comment. Updated the change log.

@rkoeninger
Copy link
Contributor Author

rkoeninger commented Sep 26, 2018

One of the required macOS builds failing with:

(ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 6, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just "s3.amazonaws.com", service name: Just "443"): does not exist (nodename nor servname provided, or not known))

Does that count against this PR? I don't know what to do about it.

@@ -315,7 +316,7 @@ logOptionsHandle handle' verbose = liftIO $ do
, logVerboseFormat = return verbose
, logTerminal = terminal
, logUseTime = verbose
, logUseColor = verbose && terminal
, logUseColor = verbose && terminal && os /= "mingw32"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd rather use the WINDOWS CPP flag, so that we use the same logic throughout the codebase for checking for Windows. Otherwise, looks great!

@snoyberg snoyberg merged commit ce8055b into commercialhaskell:master Sep 27, 2018
@snoyberg
Copy link
Collaborator

Thanks!

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