Do not translate logging messages

issue10942
review351021002
This commit is contained in:
Cédric Krier committed 2021-12-08 00:36:45 +01:00
1 parent 7e28b3268b
commit e49c70a2ae
5 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ def _listen(connection):
logger.info("Bus not supported")
break
logger.error(
"An exception occured while connecting to the bus."
"An exception occurred while connecting to the bus. "
"Sleeping for %s seconds",
wait, exc_info=error)
time.sleep(min(wait, bus_timeout))
+1 -1
View File
@@ -67,7 +67,7 @@ def update_completion(entry, record, field, model, domain=None):
process_exception=False, callback=callback)
except Exception:
logger.warning(
_("Unable to search for completion of %s") % model,
"Unable to search for completion of %s", model,
exc_info=True)
return False
search_text = entry.get_text()
+1 -1
View File
@@ -59,7 +59,7 @@ class EmailEntry(Gtk.Entry):
results = results()
except (TrytonError, TrytonServerError):
logger.warning(
_("Unable to complete email entry"), exc_info=True)
"Unable to complete email entry", exc_info=True)
results = []
if text != self.get_text():
return False
+2 -2
View File
@@ -837,8 +837,8 @@ class Screen(SignalEvent):
selected_nodes = json.loads(selected_nodes)
except RPCException:
logger.warn(
_('Unable to get view tree state for %s')
% self.model_name)
'Unable to get view tree state for %s',
self.model_name)
self.tree_states[parent][view.children_field] = (
expanded_nodes, selected_nodes)
if view.view_type == 'tree':
+2 -2
View File
@@ -155,8 +155,8 @@ class Wizard(InfoBar):
process_exception=False, callback=end_callback)
except Exception:
logger.warn(
_("Unable to delete wizard %s") % self.session_id,
exc_info=True)
"Unable to delete session %s of wizard %s",
self.session_id, self.action, exc_info=True)
def clean(self):
for widget in self.widget.get_children():