# CronPlus: disable syslog \[info\] entries

**URL:** <https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883>\
**Category:** General\
**Created:** [1 August 2022 13:18 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883 "2022-08-01T13:18:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [1 August 2022 13:18 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/1 "2022-08-01T13:18:36Z")

</div>

G'day y'all...

I am trying to find a way to disable all of the `[info]` log entries in the syslog file from the various `cronplus` nodes I have in my flows....

Anybody managed to do this? (If so.... How?)

Regds  
Ed

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 August 2022 13:54 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/2 "2022-08-01T13:54:10Z")

</div>

Hi, i have an outstanding task to do that - my apologies it is not yet done

I will attempt to get this fixed soon

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [1 August 2022 13:58 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/3 "2022-08-01T13:58:31Z")

</div>

Oh wow!!

Thanks for the prompt comeback!!

I Luuuuurve cron plus btw!!

Cheers  
Ed

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [1 August 2022 14:00 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/4 "2022-08-01T14:00:15Z")

</div>

I've got an [open git issue for this](https://github.com/Steve-Mcl/node-red-contrib-cron-plus/issues/48), which I created in January.  
In the meantime, I've edited cronplus.js and [edited out these lines](https://github.com/Steve-Mcl/node-red-contrib-cron-plus/blob/master/cronplus.js#L1130-L1134), so that they read;

```auto
/*
            try {
                node.log(`createTask - index: ${index}, static: ${static}, opt: ${JSON.stringify(opt)}`);
            } catch (error) {
                node.error(error);
            }
*/

```

But of course my edit get's over-written each time I update Cron+, but it's a 2 minute job, and avoids the log getting polluted with information that I don't need to see.

**[EDIT -]** More replies whilst I was typing

* * *

[added by @zenofmud to make it easier for others to find the location of the code]  
If you want to fix it you need to edit the `cronplus.js` file.

`nano $HOME/.node-red/node_modules/node-red-contrib-cron-plus/cronplus.js`

Then press `ctrl-w` (which is the keyboard shortcut for 'search) and enter `function createTask` to locate the code in the file to edit.

Then change the code to look like this:

```auto
        function createTask(node, opt, index, static) {
            opt = opt || {};
/*
            try {
                node.log(`createTask - index: ${index}, static: ${static}, opt: ${JSON.stringify(opt)}`);
            } catch (error) {
                node.error(error);
            }
*/
            applyOptionDefaults(opt, index);

```

Save the file (`ctrl-x` then `y` then `return`) and reboot Node-RED

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [1 August 2022 14:06 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/5 "2022-08-01T14:06:39Z")

</div>

Thanks Paul,

That might just work for me in the interim...

Pray tell, can I just edit and save or must I restart something to get the changes "active"?

Regds  
Ed

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [1 August 2022 14:07 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/6 "2022-08-01T14:07:40Z")

</div>

> [@eddee54455](#):
>
> Pray tell, can I just edit and save or must I restart something to get the changes "active"?

You just need to restart node-RED to read in the change.

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [1 August 2022 14:08 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/7 "2022-08-01T14:08:18Z")

</div>

Shotto!!

Will give it a go!!

Cheerz  
E

---

<div class="post-metadata">

**Author:** ![eddee54455](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/eddee54455/32/43350_2.png) [@eddee54455](https://discourse.nodered.org/u/eddee54455)\
**Post date:** [1 August 2022 14:39 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/8 "2022-08-01T14:39:38Z")

</div>

Works a treat!!

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 August 2022 15:35 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/9 "2022-08-01T15:35:30Z")

</div>

Hopefully you will move the messages to debug or trace rather than removing them? They can occasionally be helpful after all 😃

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 August 2022 15:35 UTC](https://discourse.nodered.org/t/cronplus-disable-syslog-info-entries/65883/10 "2022-08-15T15:35:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
