# Random and expensive relay behavior

**URL:** https://discourse.nodered.org/t/random-and-expensive-relay-behavior/16276
**Category:** General
**Created:** [3 October 2019 20:08 UTC](https://discourse.nodered.org/t/random-and-expensive-relay-behavior/16276 "2019-10-03T20:08:31Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [4 October 2019 06:16 UTC](https://discourse.nodered.org/t/random-and-expensive-relay-behavior/16276/3 "2019-10-04T06:16:42Z")

</div>

Add some debug nodes to your flow, set to send the output to the console. Give the nodes names so they can be easily identified in the output. Then when it goes wrong you can look at the log and work out where it is failing.

---

_[View the full topic](https://discourse.nodered.org/t/random-and-expensive-relay-behavior/16276)._
