File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222from osc_lib import utils
2323
2424from openstackclient .i18n import _
25- from openstackclient .i18n import _LE
2625
2726
2827LOG = logging .getLogger (__name__ )
@@ -189,7 +188,7 @@ def take_action(self, parsed_args):
189188 cs .disable (parsed_args .host , parsed_args .service )
190189 except Exception :
191190 status = "enabled" if enabled else "disabled"
192- LOG .error (_LE ( "Failed to set service status to %s" ) , status )
191+ LOG .error ("Failed to set service status to %s" , status )
193192 result += 1
194193
195194 force_down = None
@@ -203,7 +202,7 @@ def take_action(self, parsed_args):
203202 force_down = force_down )
204203 except Exception :
205204 state = "down" if force_down else "up"
206- LOG .error (_LE ( "Failed to set service state to %s" ) , state )
205+ LOG .error ("Failed to set service state to %s" , state )
207206 result += 1
208207
209208 if result > 0 :
Original file line number Diff line number Diff line change 1919
2020# The primary translation function using the well-known name "_"
2121_ = _translators .primary
22-
23- # Translators for log levels.
24- #
25- # The abbreviated names are meant to reflect the usual use of a short
26- # name like '_'. The "L" is for "log" and the other letter comes from
27- # the level.
28- _LI = _translators .log_info
29- _LW = _translators .log_warning
30- _LE = _translators .log_error
31- _LC = _translators .log_critical
You can’t perform that action at this time.
0 commit comments