Change log file location
#1
Hi all.
I'm new here, I looked for my topic, but I couldn't find anything about it.

How can I change log file location? I would like to move it from /home/pi/.kodi/temp/ to an external USB stick.
Or, in alternative, how can I can I set log level in order to avoid "NOTICE" log?

Thank you very much.
Reply
#2
Try setting env variable KODI_TEMP pointing to the temp directory you want to use before launching kodi.
Reply
#3
done this:
Code:
echo "export KODI_TEMP=/mnt/cache/kodi/temp" >> .bashrc
and rebooted.

The variable has been set, but I still have temp dir on /home/pi/.kodi...
Reply
#4
debug log (wiki) ?

Should be a line like:
Code:
19:52:10.689 T:1995543328  NOTICE: special://temp/ is mapped to: /home/pi/.kodi/temp
Reply
#5
Yes.
By the way if it would be possible to move whole temp dir would be even better...
Reply
#6
Can you move it with path substitution ?

Something like

PHP Code:
<advancedsettings>
 <
pathsubstitution>
  <
substitute>
    <
from>special://temp/</from>
    
<to>/mnt/cache/kodi/temp/</to>
  </
substitute>
 </
pathsubstitution>
</
advancedsettings
Learning Linux the hard way !!
Reply
#7
(2016-11-30, 22:13)black_eagle Wrote: Can you move it with path substitution ?

Something like

PHP Code:
<advancedsettings>
 <
pathsubstitution>
  <
substitute>
    <
from>special://temp/</from>
    
<to>/mnt/cache/kodi/temp/</to>
  </
substitute>
 </
pathsubstitution>
</
advancedsettings
IIRC pathsubs don't work for the temp folder. I've moved it to a different partition with a symlink in the distant past.
Reply
#8
@trogggy - Must admit I haven't tried it with special://temp but yeah, a symlink would let you move it, even across drives.
Learning Linux the hard way !!
Reply
#9
I tried with symlink and it seems work, but at startup a log warns me with something like "failed to start commoncache...". In the new temp dir there is a file named commoncache.db that remains at 0 size. Do I have to worry?
Reply
#10
It's a service plugin used by some of my installed add-ons.
I tried one of these add-on, and it seems work even without this plugin.
Neverthless I decided to roll back: so conclusion is that it is not possible to relocate temp dir?
Reply
#11
I checked out that commoncache.db and it belongs to ArtworkDownloader, so it's not critical unless you use that add-on a lot.
Learning Linux the hard way !!
Reply

Logout Mark Read Team Forum Stats Members Help
Change log file location0