the output now prefixes the string with ``"FAILED:"``, and the error
is also written to the log output using ``log.error()``.
fixes #209
from sqlalchemy.util import format_argspec_plus, update_wrapper
from sqlalchemy.util.compat import inspect_getfullargspec
+import logging
+log = logging.getLogger(__name__)
try:
import fcntl
raise
def err(message):
- msg(message)
+ log.error(message)
+ msg("FAILED: %s" % message)
sys.exit(-1)
def obfuscate_url_pw(u):
.. changelog::
:version: 0.6.6
+ .. change::
+ :tags: enhancement
+ :tickets: 209
+
+ When a run of Alembic command line fails due to ``CommandError``,
+ the output now prefixes the string with ``"FAILED:"``, and the error
+ is also written to the log output using ``log.error()``.
+
.. change::
:tags: bug
:tickets: 208