summaryrefslogtreecommitdiff
path: root/src/Propellor/Message.hs
AgeCommit message (Collapse)Author
2017-08-01Improve PROPELLOR_TRACE output so serialized trace values always come on ↵Joey Hess
their own line, not mixed with title setting.
2017-07-30Merge branch 'master' into joeyconfigJoey Hess
2017-07-29Expand the Trace data type.Joey Hess
Technically this is an API change, but the only thing I'm breaking at this point is my own unreleased software.
2017-07-29display end trace after displaying normal end messageJoey Hess
2017-07-29Added PROPELLOR_TRACE environment variableJoey Hess
which can be set to 1 to make propellor output serialized Propellor.Message.Trace values, for consumption by another program. This commit was sponsored by Ewen McNeill.
2017-07-05avoid buffering container chain outputJoey Hess
When provisioning a container, output was buffered until the whole process was done; now output will be displayed immediately. I know this didn't used to be a problem. I belive it was introduced by accident when propellor started using concurrent-output. I know I've seen it for a while and never was bothered enough to get to the bottom of it; apparently "a while" was longer than I thought. Also refactored code to do with chain provisioning to all be in Propellor.Engine and avoided some duplication. This commit was sponsored by Anthony DeRobertis on Patreon.
2017-07-05Revert "speed up chain output displaying"Joey Hess
This reverts commit c59ce983999ddbfe6cb8b27e4f376b5c37d7f853. That was wrong because only the *last* line of chain output is a Result. It could be that a previous line is able to be read as a Result, and the commit would make processing bail out at that point.
2017-07-05propellor spinJoey Hess
2017-07-05speed up chain output displayingJoey Hess
Avoid needing to wait for a subsequent line before displaying the previous line.
2017-06-18Display error and warning messages to stderr, not stdout.Joey Hess
2016-11-11Clean up build warnings about redundant constraints when built with ghc 8.0.Joey Hess
Only a couple of the constraints were really redundant. The rest are essential to propellor's tracking of Info propigation, so I silenced the warning for those. It would be better to only silence the warning for the functions with the extra constraints, but IIRC warnings can only be silenced on an entire file basis. This commit was sponsored by Andreas on Patreon.
2016-06-13wordingJoey Hess
2016-06-13add stopPropellorMessageJoey Hess
2015-12-19Clean build with ghc 7.10.Joey Hess
Import Prelude after modules that cause warnings due to AMP change
2015-12-08avoid crash when stdout is not open in call to hIsTerminalDeviceJoey Hess
Saw this happen in http://propellor.branchable.com/forum/Fail_to_push_changes_when_merging/ although I don't entirely understand the circumstances.
2015-11-01merge from concurrent-outputJoey Hess
2015-10-28have to flush concurrent output before printing result when chainingJoey Hess
2015-10-28need withConcurrentOutput to flush any buffered concurrent outputJoey Hess
2015-10-28use outputConcurrent interfaceJoey Hess
This interface will fix the current deadlock when a process is running and the thread that ran it wants to output to the console. The locking and buffering is not implemented yet.
2015-10-28split out generic ConcurrentOutput module to UtilityJoey Hess
2015-10-28concurrency docsJoey Hess
2015-10-27use execProcessConcurrent everywhereJoey Hess
Found a reasonable clean way to make Utility.Process use execProcessConcurrent, while still allowing copying updates to it from git-annex.
2015-10-27concurrent version of createProcessJoey Hess
Have not yet wired everything up to use this, that currently uses Utility.Process.
2015-10-27make Propellor.Message use lock to handle concurrent threads outputting messagesJoey Hess
Not yet handled: Output from concurrent programs.
2015-10-27use a shared global for the MessageHandleJoey Hess
2015-09-13Follow some hlint suggestions.Mario Lang
2015-04-29remove unused importJoey Hess
2014-11-26avoid crash on no propellor.debug settingJoey Hess
2014-11-25propellor.debug can be set in the git config to enable more persistent ↵Joey Hess
debugging output.
2014-11-19sigel didn't work outJoey Hess
Unicode output failed in docker, due to no locales, and would be generally shakey from haskell in all the environments propellor needs to run in.
2014-11-19propellor spinJoey Hess
2014-11-19propellor spinJoey Hess
2014-11-19unicode ahoyJoey Hess
2014-11-18reorgJoey Hess
2014-11-18fix color display when running propellor inside dockerJoey Hess
2014-11-18Run remote propellor --spin with a controlling terminal.Joey Hess
Avoids need for hack to make ansi colors work, but also things like apt-get and wget process bars will be displayed.
2014-11-18ssh won't allocate a tty; work aroundJoey Hess
stdin is not a terminal, drat ssh I don't much like this workaround
2014-11-18propellor spinJoey Hess
2014-11-18can't rely on TERM; use hIsTerminalDeviceJoey Hess
This calls an ioctl, I don't think it's very expensive.
2014-11-18Avoid outputting color setting sequences when not run on a terminal.Joey Hess
Currently TERM is checked for every message. Could be memoized, but it would add complexity, and typical propellor output is not going to be more than a few hundred messages, and likely this will be swamped by the actual work.
2014-07-07propellor spinJoey Hess
2014-07-07propellor spinJoey Hess
2014-05-31propellor spinJoey Hess
2014-05-14moved source code to srcJoey Hess
This is to work around OSX's brain-damange regarding filename case insensitivity. Avoided moving config.hs, because it's a config file. Put in a symlink to make build work.