Change crashlog default location
#1
Hi,

Everytime XBMC crashes (which happens a lot more frequently then what I would like) he creates a crashlog at the location /home/user/crash<date>.log, is it possible to disable crashlogs or to at least change the location where they are created?

I'm sorry if this has been answered I couldn't find it. Thanks in advance.
Reply
#2
+1. I cannot figure this out either, and my home directory is getting filled up faster than I'd like. Wink

Does anyone have the answer? Thanks in advance.
Reply
#3
+1 This has been driving me crazy
Reply
#4
Add "0 0 * * * rm ~/xbmc_crash*.log" to crontab. Assuming your system runs 24/7 this would remove any crash logs at midnight every night.
Reply
#5
If XBMC crashes repeatedly you should create tickets on trac.xbmc.org with the logs attached so people can actually investigate the issues.
Reply
#6
(2014-01-10, 22:16)negge Wrote: If XBMC crashes repeatedly you should create tickets on trac.xbmc.org with the logs attached so people can actually investigate the issues.

HAHAHA, you are joking right?

Not only does that involve being "possibly" ignored, it is actually easier to ignore that something you are doing setup wise is causing that, in either case its easier to ask how to get rid of it or wait until someone is annoyed enough to actually fix any issues that are not user fault resolved, if any.

On a unrelated note, crashlogs and logs shouldnt be created at temp or /home/user there should be a dedicated folder for all logs. But that involves know how, and I do not otherwise it would be done.
Reply
#7
(2014-01-10, 23:15)uNiversal Wrote: Not only does that involve being "possibly" ignored, it is actually easier to ignore that something you are doing setup wise is causing that, in either case its easier to ask how to get rid of it or wait until someone is annoyed enough to actually fix any issues that are not user fault resolved, if any.

It is nontheless the right thing to do. The location of the log files is not the issue, it's the fact that they're created that is the real issue. It's called the XY problem.

Anyway, the cronjob is the second best solution.
Reply
#8
We haven't seen a crashlog never mind a crashlog with debug enabled, so therefore I propose we should clrealy the guy has many he wished to get rid of. So I suggest Op post one or two so we can gander into his porn habits.

@ negge

Im not debating that the crashlogs location is an issue, it was a simple factual UNRELATED observation hence called unrelated note: -- that if per chance there was any chance they should be aggregated in a relevant folder they shoudl, having them in whatver arbitrary location are confusing and serve no purpose but to confuse, chuck logs with logs and yey. we have a logging community of tree hugers, wait, wrong loggers..
Reply
#9
https://github.com/xbmc/xbmc/pull/4007
Reply
#10
Nice wsnipex does that aggregate all logs in same place? eh no, closer than before though. thx.
Reply
#11
normal logs are already in one place, with that PR you can set the crashlog dir to the same if you want:
CRASHLOG_DIR=$HOME/.xbmc/temp ./xbmc
Reply
#12
Wouldn't it be better f all logs lived in a userdata (wiki) log folder? Temp folder is odd place to keep any logs. but ya, this is definetly a step in right direction.
Reply
#13
although I agree that .temp is not the optimal place for the xbmc.log, changing this will cause support pain for us and all the scripts out there.
Reply
#14
Ya, I guess, its always a pain but maybe in Gotham+1

Would you consider this PR you have perhaps while also make it configurable yet make the default location to be .temp as well so both log types can be found there -- Then at a future date perhaps make it all go to a log folder.

Makes more sense and logic at least is consistent by default.

Thank you for actually looking at it, little things like this that make support easier, you have been +'sd
Reply

Logout Mark Read Team Forum Stats Members Help
Change crashlog default location0