ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Intro.pod
(Generate patch)

Comparing AnyEvent-MP/MP/Intro.pod (file contents):
Revision 1.54 by root, Wed Mar 21 23:48:39 2012 UTC vs.
Revision 1.55 by root, Thu Mar 22 00:48:29 2012 UTC

174 174
175Sometimes things go wrong, and AnyEvent::MP, being a professional module, 175Sometimes things go wrong, and AnyEvent::MP, being a professional module,
176does not gratuitously spill out messages to your screen. 176does not gratuitously spill out messages to your screen.
177 177
178To help troubleshooting any issues, there are two environment variables 178To help troubleshooting any issues, there are two environment variables
179that you can set. The first, C<PERL_ANYEVENT_MP_WARNLEVEL> sets the 179that you can set. The first, C<AE_VERBOSE> sets the logging level of
180logging level. The default is C<5>, which means nothing much is 180L<AnyEvent::Log>, which AnyEvent::MP uses. The default is C<3>, which
181printed. You can increase it to C<8> or C<9> to get more verbose 181means nothing much is printed. You can increase it to C<8> or C<9> to get
182output. This is example output when starting a node: 182more verbose output. This is example output when starting a node (somewhat
183abridged to get shorter lines):
183 184
184 2012-03-04 19:41:10 <8> node cerebro starting up. 185 2012-03-22 01:41:43.59 debug AE::Util: using Guard module to implement guards.
185 2012-03-04 19:41:10 <8> node listens on [10.0.0.1:4040]. 186 2012-03-22 01:41:43.62 debug AE::MP::Kernel: node cerebro/slwK2LEq7O starting up.
187 2012-03-22 01:41:43.62 debug AE::MP::Kernel: node listens on [10.0.0.1:52110].
186 2012-03-04 19:41:10 <9> trying connect to seed node 10.0.0.19:4040. 188 2012-03-22 01:41:43.62 trace AE::MP::Kernel: trying connect to seed node 10.0.0.19:4040.
187 2012-03-04 19:41:10 <9> 10.0.0.19:4040 connected as rain 189 2012-03-22 01:41:43.66 trace AE::MP::Transport: 10.0.0.19:4040 connected as rain
188 2012-03-04 19:41:10 <7> rain is up () 190 2012-03-22 01:41:43.66 info AE::MP::Kernel: rain is up ()
189 191
190A lot of info, but at least you can see that it does something. 192A lot of info, but at least you can see that it does something. To only
193get info about AnyEvent::MP, you can use C<AE_LOG=AnyEvent::MP=+log> in
194your environment.
191 195
192The other environment variable that can be useful is 196The other environment variable that can be useful is
193C<PERL_ANYEVENT_MP_TRACE>, which, when set to a true value, will cause 197C<PERL_ANYEVENT_MP_TRACE>, which, when set to a true value, will cause
194most messages that are sent or received to be printed. For example, F<aemp 198most messages that are sent or received to be printed. For example, F<aemp
195restart rijk> might output these message exchanges: 199restart rijk> might output these message exchanges:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines