… | |
… | |
174 | |
174 | |
175 | Sometimes things go wrong, and AnyEvent::MP, being a professional module, |
175 | Sometimes things go wrong, and AnyEvent::MP, being a professional module, |
176 | does not gratuitously spill out messages to your screen. |
176 | does not gratuitously spill out messages to your screen. |
177 | |
177 | |
178 | To help troubleshooting any issues, there are two environment variables |
178 | To help troubleshooting any issues, there are two environment variables |
179 | that you can set. The first, C<PERL_ANYEVENT_MP_WARNLEVEL> sets the |
179 | that you can set. The first, C<AE_VERBOSE> sets the logging level of |
180 | logging level. The default is C<5>, which means nothing much is |
180 | L<AnyEvent::Log>, which AnyEvent::MP uses. The default is C<3>, which |
181 | printed. You can increase it to C<8> or C<9> to get more verbose |
181 | means nothing much is printed. You can increase it to C<8> or C<9> to get |
182 | output. This is example output when starting a node: |
182 | more verbose output. This is example output when starting a node (somewhat |
|
|
183 | abridged 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 | |
190 | A lot of info, but at least you can see that it does something. |
192 | A lot of info, but at least you can see that it does something. To only |
|
|
193 | get info about AnyEvent::MP, you can use C<AE_LOG=AnyEvent::MP=+log> in |
|
|
194 | your environment. |
191 | |
195 | |
192 | The other environment variable that can be useful is |
196 | The other environment variable that can be useful is |
193 | C<PERL_ANYEVENT_MP_TRACE>, which, when set to a true value, will cause |
197 | C<PERL_ANYEVENT_MP_TRACE>, which, when set to a true value, will cause |
194 | most messages that are sent or received to be printed. For example, F<aemp |
198 | most messages that are sent or received to be printed. For example, F<aemp |
195 | restart rijk> might output these message exchanges: |
199 | restart rijk> might output these message exchanges: |