Remove the duplicate 'Warning' prefix now that the logger adds the prefix.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
d836973a04
commit
841ed4ed21
5 changed files with 44 additions and 8 deletions
|
|
@ -59,9 +59,8 @@ def main():
|
|||
log.error(e.msg)
|
||||
sys.exit(1)
|
||||
except NoSuchCommand as e:
|
||||
log.error("No such command: %s", e.command)
|
||||
log.error("")
|
||||
log.error("\n".join(parse_doc_section("commands:", getdoc(e.supercommand))))
|
||||
commands = "\n".join(parse_doc_section("commands:", getdoc(e.supercommand)))
|
||||
log.error("No such command: %s\n\n%s", e.command, commands)
|
||||
sys.exit(1)
|
||||
except APIError as e:
|
||||
log.error(e.explanation)
|
||||
|
|
|
|||
|
|
@ -57,9 +57,11 @@ def format_boolean_in_environment(instance):
|
|||
"""
|
||||
if isinstance(instance, bool):
|
||||
log.warn(
|
||||
"Warning: There is a boolean value in the 'environment' key.\n"
|
||||
"Environment variables can only be strings.\nPlease add quotes to any boolean values to make them string "
|
||||
"(eg, 'True', 'yes', 'N').\nThis warning will become an error in a future release. \r\n"
|
||||
"There is a boolean value in the 'environment' key.\n"
|
||||
"Environment variables can only be strings.\n"
|
||||
"Please add quotes to any boolean values to make them string "
|
||||
"(eg, 'True', 'yes', 'N').\n"
|
||||
"This warning will become an error in a future release. \r\n"
|
||||
)
|
||||
return True
|
||||
|
||||
|
|
|
|||
|
|
@ -862,7 +862,7 @@ class ServiceNet(object):
|
|||
if containers:
|
||||
return 'container:' + containers[0].id
|
||||
|
||||
log.warn("Warning: Service %s is trying to use reuse the network stack "
|
||||
log.warn("Service %s is trying to use reuse the network stack "
|
||||
"of another service that is not running." % (self.id))
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue