Announcement

Collapse
No announcement yet.

How to disable sending crash logs?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • slothrop
    replied
    Originally posted by mrw View Post

    Thanks for the reminder. I hope you don't get too many crash logs, it would be a shame to fill up the device's flash...
    Good point, will need to revert it when I'm done!

    Leave a comment:


  • mrw
    replied
    Originally posted by slothrop View Post

    Thanks! That, plus a code change in CrashLogApplet.lua, did the trick:

    Code:
    function _crashLogDontSend(self, file)
    log:info("crash log not sending: ", file)
    _doneLog(self, file, false) -- had to change last param from true to false
    end​
    Thanks for the reminder. I hope you don't get too many crash logs, it would be a shame to fill up the device's flash...

    Leave a comment:


  • slothrop
    replied
    Originally posted by mrw View Post
    I don't think so.

    I forget how I originally configured this, there must have been a pop up at some point in the dim, distant past.
    Perhaps a manual tweak to the settings might work:
    Code:
    # cat /etc/squeezeplay/userpath/settings/CrashLog.lua
    settings = {sendLog=false,}#
    ​
    Thanks! That, plus a code change in CrashLogApplet.lua, did the trick:

    Code:
    function _crashLogDontSend(self, file)
        log:info("crash log not sending: ", file)
        _doneLog(self, file, false) -- had to change last param from true to false
    end​

    Leave a comment:


  • mrw
    replied
    Originally posted by slothrop View Post
    It looks like sending the crash log causes it to be deleted from the device.

    I would prefer not to send the log, but to retain it on the device so I can review it. Is there a setting for this that I can configure from the UI?
    I don't think so.

    I forget how I originally configured this, there must have been a pop up at some point in the dim, distant past.
    Perhaps a manual tweak to the settings might work:
    Code:
    # cat /etc/squeezeplay/userpath/settings/CrashLog.lua
    settings = {sendLog=false,}#
    ​

    Leave a comment:


  • slothrop
    started a topic How to disable sending crash logs?

    How to disable sending crash logs?

    After a crash, I see a line like this in the SB Radio's logs:

    Code:
    Jan 23 06:58:44 squeezeplay: INFO   applet.CrashLog - CrashLogApplet.lua:43 sending crash log: /root/crashlog.bFso6a sendLog=true
    It looks like sending the crash log causes it to be deleted from the device.

    I would prefer not to send the log, but to retain it on the device so I can review it. Is there a setting for this that I can configure from the UI?

    I can see that in CrashLogApplet.lua, the sending vs retention of the logs is conditioned on a system setting:

    Code:
    function _processLogs(self)
        local settings = self:getSettings()
    
        for file,queued in pairs(logs) do
            if settings.sendLog == true then
                if queued then
                     _crashLogSend(self, file)
                end
            else
                 _crashLogDontSend(self, file)
            end
        end
    end​
    However I can't see how to change that setting in the UI. Sorry if I'm missing it!

    I'm using Squeezebox Radio firmware version 8.0.1-r16907.
Working...
X