GIANT unwanted debug log

Since doing the daily.sh this morning to fix some errors I was running into with my php-7.2 install my librenms instance it’s been collecting a what looks like a full debug log that it hadn’t done until today. The log is in ./logs and is called librenms-YYYY-MM-DD.log and after running all day is nearing 4GB in size. Most of the lines are of the format:

[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG:  1: valid  
[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG: Modules status: Global+  
[2019-02-13 20:51:04] production.DEBUG: OS  
[2019-02-13 20:51:04] production.DEBUG: Device  
[2019-02-13 20:51:04] production.DEBUG: Modules status: Global-  
[2019-02-13 20:51:04] production.DEBUG: OS  
[2019-02-13 20:51:04] production.DEBUG: Device  
[2019-02-13 20:51:04] production.DEBUG: Modules status: Global-  
[2019-02-13 20:51:04] production.DEBUG: OS  
[2019-02-13 20:51:04] production.DEBUG: Device  
[2019-02-13 20:51:04] production.DEBUG: ### Start Device Groups ###  
[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG:   
[2019-02-13 20:51:04] production.DEBUG: Groups Added:  
[2019-02-13 20:51:04] production.DEBUG: Groups Removed:  
[2019-02-13 20:51:04] production.DEBUG: ### End Device Groups ###  

Was there a change today that flipped on debugging and if so is there a way to turn it off before it blows up my server? :slight_smile:

We are experiencing this issue also on our LibreNMS

Same here, those log files librenms-2019-02-13.log and librenms-2019-02-14.log took the last of our disk ~80Gb!

So where can we turn it off?

Same issue here.

I have fixed it by changing line 58 in config/logging.php from
'level' => 'debug',
to
'level' => 'info',

Issue is being looked into. -> https://github.com/librenms/librenms/pull/9824

murrant has said on discord he will look into it more later today.

you shouldn’t edit the files inside the config directory.

the issue has been fixed in PR 9824 and merged to master.

Indeed I shouldn’t edit files in the config but it’s was just a quick fix from my side until the PR was merged.
And I can verify that the PR works as it should.
Thank you

YAY! No more rapidly growing log file :slight_smile:

1 Like

Fix has been merged into the master. If you are using the dev branch you will get the update.