Mercurial > libervia-backend
changeset 1018:e22e4cf86204
core (i18n): use logging system instead of print
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 08 May 2014 19:11:47 +0200 |
parents | 0ea97f483464 |
children | 6a16ec17a458 |
files | src/core/i18n.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/i18n.py Thu May 08 19:11:20 2014 +0200 +++ b/src/core/i18n.py Thu May 08 19:11:47 2014 +0200 @@ -18,6 +18,9 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. +from sat.core.log import getLogger +log = getLogger(__name__) + try: import gettext @@ -32,7 +35,7 @@ except ImportError: - print "WARNING: gettext support disabled" + log.warning("gettext support disabled") _ = lambda msg: msg # Libervia doesn't support gettext def languageSwitch(lang=None): pass