If the file to monitor is blank, NFR throws a lot of errors (repeated)
chrisforce1 opened this issue · 1 comments
chrisforce1 commented
$ ./nfr start
INFO[2018-04-04T20:36:23Z] loaded 1 groups containing monitoring scope data
INFO[2018-04-04T20:36:23Z] monitoring
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
INFO[2018-04-04T20:36:23Z] Waiting for to appear...
We should recognize that NULL isn't valid and throw an error. We should also probably try to stat()
the file or similar before continuing and not throwing this repeated error. It just flooded my Terminal.
chrisforce1 commented
Maybe check for the file every 30s instead of hundreds of time a second?