better logging
This commit is contained in:
parent
3d135a9f4a
commit
aca651a1b4
5 changed files with 6 additions and 3 deletions
|
@ -192,6 +192,7 @@ def check_dj_client(user,password) =
|
|||
ret = get_process_lines("python /usr/lib/airtime/pypo/bin/liquidsoap_scripts/liquidsoap_auth.py --dj #{user} #{password}")
|
||||
#ret has now the value of the live client (dj1,dj2, or djx), or "ERROR"/"unknown" ...
|
||||
hd = list.hd(ret)
|
||||
log("Live DJ authenticated: #{hd}")
|
||||
hd == "True"
|
||||
end
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ class PypoFetch(Thread):
|
|||
tn.write('exit\n')
|
||||
tn.read_all()
|
||||
except Exception, e:
|
||||
logger.error(str(e))
|
||||
logger.error(traceback.format_exc())
|
||||
finally:
|
||||
lock.release()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue