Since the machine which will host this, along with my LMS and other
assorted duties in my home network, is running completely headless I'm
doing everything through Putty from my laptop. This of course means that
it's not always connected to my home network, so the session gets
interrupted and I don't know wether it's finished, nor how long it took
to run :p To alleviate these points I've done 2 things:
  
- I tell lmsmusly.py to store the DB in the root of my music
  directory. If it exceeds the initial 7KB of creation, the process has
  run :p
- I've modified the logging.basicConfig to write the log to the same
  location.
- 
  
Since this is the very first time I'm modifying anything Python, it's
not really what I'd like, but it does the job.

Code:
--------------------
    
  logging.basicConfig(level=args.log_level,
                format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
                datefmt='%Y-%m-%d %H:%M:%S',
                filename= config.MUSLY_DBPATH + '/' + 
time.strftime('%Y%m%d%H%M%S') + '_lmsmusly.log',
                filemode='w')
  
--------------------

Ideally I'd like to have it still send the defined level to stdout,
while simultaneously writing a complete DEBUG log to the file, but thats
quite a bit above my competences at the moment. I believe I should
create a second logging instance to achieve this, which should then take
its level from the command arguments, while this one gets set to DEBUG
statically, but I'm afraid I don't understand Python well enough as yet
to see the ramifications of this approach.



Main System: Touch; Marantz SR-5004 + TMA Premium 905 + TMA Premium 901
+ Teufel Ultima 20 Mk 2 + BK Monolith+ FF + Lenovo T460 + Kodi + Pioneer
PDP-LX5090H
Workshop: iPad 32GB Wifi + Squeezepad (local playback activated)
Wherever needed: Acer Iconia Tab A700 + Squeezeplayer
Kitchen: iPhone 5s + Squeezepad (local playback activated) + NAD 312 +
Teufel Ultima 20 Mk 2
Headphone (cozy corner): Lenovo T550 + Squeezelite-X + Aune X7S + Focal
Elear
Car: TBC ...
------------------------------------------------------------------------
bakker_be's Profile: http://forums.slimdevices.com/member.php?userid=30369
View this thread: http://forums.slimdevices.com/showthread.php?t=108495

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to