mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-22 08:53:59 +01:00
Merge branch 'hotfix-logfix'
This commit is contained in:
+5
-2
@@ -47,8 +47,11 @@ def startmb(forcemb=False):
|
|||||||
q = ws.Query(service)
|
q = ws.Query(service)
|
||||||
|
|
||||||
logger.debug('Using the following server values:\nMBHost: %s ; MBPort: %i ; Sleep Interval: %i ' % (mbhost, mbport, sleepytime))
|
logger.debug('Using the following server values:\nMBHost: %s ; MBPort: %i ; Sleep Interval: %i ' % (mbhost, mbport, sleepytime))
|
||||||
if headphones.MIRROR == "headphones":
|
if headphones.MIRROR == "headphones" and not forcemb:
|
||||||
logger.debug('Headphones Username: %s ; Headphones Password: %s ' % (hpuser, len(hppass) * '*'))
|
try:
|
||||||
|
logger.debug('Headphones Username: %s ; Headphones Password: %s%s%s' % (hpuser, hppass[0],(len(hppass)-2) * '*', hppass[-1]))
|
||||||
|
except Exception, e:
|
||||||
|
logger.debug('Error logging hpuser or hppass: %s. Check your settings' % e)
|
||||||
|
|
||||||
return (q, sleepytime)
|
return (q, sleepytime)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user