wix: use of new logging system
This commit is contained in:
parent
39989cc985
commit
2fddb02872
1 changed files with 76 additions and 80 deletions
|
|
@ -21,7 +21,8 @@
|
|||
|
||||
from sat.core.i18n import _
|
||||
import wx
|
||||
from logging import debug, info, error
|
||||
from sat.core.log import getLogger
|
||||
log = getLogger(__name__)
|
||||
from sat.tools.jid import JID
|
||||
|
||||
|
||||
|
|
@ -145,11 +146,11 @@ class ProfileManager(wx.Panel):
|
|||
new_jid = self.login_jid.GetValue()
|
||||
new_pass = self.login_pass.GetValue()
|
||||
if old_jid != new_jid:
|
||||
debug(_('Saving new JID and server'))
|
||||
log.debug(_('Saving new JID and server'))
|
||||
self.host.bridge.setParam("JabberID", new_jid, "Connection", profile_key=profile)
|
||||
self.host.bridge.setParam("Server", JID(new_jid).domain, "Connection", profile_key=profile)
|
||||
if old_pass != new_pass:
|
||||
debug(_('Saving new password'))
|
||||
log.debug(_('Saving new password'))
|
||||
self.host.bridge.setParam("Password", new_pass, "Connection", profile_key=profile)
|
||||
self.host.plug_profile(profile)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue