-
Notifications
You must be signed in to change notification settings - Fork 98
Avoid loop when tracing received messages. #267
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
Conversation
bf0bea7
to
bdcd0f0
Compare
hm, had forgotten that tests live now on the same repo as d-p. I just included the tests in this PR then. |
Related to #265. |
bdcd0f0
to
a9949ad
Compare
|
||
#if ! MIN_VERSION_base(4,6,0) | ||
import Prelude hiding (catch, log) | ||
#else | ||
import Prelude hiding ((<*)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest prelude that exported catch
in prelude 4.4.1, so I suppose we could drop this CPP thing and leave
only import Prelude
(in case log
should not be hidden)
Fails on 7.4 (can be removed from travis) and 7.6 due to build error, |
Everything else looks good to me. |
a9949ad
to
b211bf0
Compare
When a trace message was sent to "trace.logger", the NC would produce a trace message to indicate the arrival of it, this new trace message would in turn have the NC produce another trace message and so on. In this patch the NC does not produce a trace message when the destination is the "trace.logger" process.
b211bf0
to
d8c36b5
Compare
We handle those issues in d-process with conditional compilation, can't we do the same here? I mean, distributed-process uses {set,get}Env, in the tracing code... |
Well, issues are solved now. |
Avoid loop when tracing received messages.
When a trace message was sent to "trace.logger", the NC would produce a trace message to indicate the arrival of it, this new trace message would in turn have the NC produce another trace message and so on.
In this patch the NC does not produce a trace message when the destination is the "trace.logger" process.
Test will be in an upcoming PR of distributed-process-tests.