Mercurial > libervia-backend
diff frontends/src/wix/profile_manager.py @ 1011:5a6354ff468c
wix: use of new logging system
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 05 May 2014 20:12:21 +0200 |
parents | 308a96bc7c1b |
children | c4c14480715a |
line wrap: on
line diff
--- a/frontends/src/wix/profile_manager.py Mon May 05 20:12:19 2014 +0200 +++ b/frontends/src/wix/profile_manager.py Mon May 05 20:12:21 2014 +0200 @@ -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 @@ 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)