From 63be08678829f5b83c39f2f6a9d44cc920b7892f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 1 Aug 2017 13:30:48 -0400 Subject: Improve PROPELLOR_TRACE output so serialized trace values always come on their own line, not mixed with title setting. --- debian/changelog | 2 ++ src/Propellor/Message.hs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e314a88c..6274bc6f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,8 @@ propellor (4.7.4) UNRELEASED; urgency=medium * Set GPG_TTY when run at a terminal, so that gpg can do password prompting despite being connected by pipes to propellor (or git). * Rsync: Make rsync display less verbose. + * Improve PROPELLOR_TRACE output so serialized trace values always + come on their own line, not mixed with title setting. -- Joey Hess Sat, 29 Jul 2017 20:02:32 -0400 diff --git a/src/Propellor/Message.hs b/src/Propellor/Message.hs index 51d9babb..0f42e417 100644 --- a/src/Propellor/Message.hs +++ b/src/Propellor/Message.hs @@ -96,9 +96,9 @@ actionMessageOn = actionMessage' . Just actionMessage' :: (MonadIO m, ActionResult r, ToResult r) => Maybe HostName -> Desc -> m r -> m r actionMessage' mhn desc a = do + liftIO $ trace $ ActionStart mhn desc liftIO $ outputConcurrent =<< whenConsole (setTitleCode $ "propellor: " ++ desc) - liftIO $ trace $ ActionStart mhn desc r <- a -- cgit v1.2.3