From e7dce7cc5a6c4b62f2133e7e5985ebfe4eadf49c Mon Sep 17 00:00:00 2001 From: Lee Clemens Date: Thu, 12 Jan 2012 01:05:51 -0500 Subject: [PATCH] BF: Added logging above ValueError, since only INVALID COMMAND is printed by calling method --- server/jail.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/jail.py b/server/jail.py index f5fd3b04..53048b98 100644 --- a/server/jail.py +++ b/server/jail.py @@ -49,8 +49,10 @@ class Jail: if backend != 'auto': # we have got strict specification of the backend to use if not (backend in self._BACKENDS): + logSys.error("Unknown backend %s. Must be among %s or 'auto'" + % (backend, backends)) raise ValueError("Unknown backend %s. Must be among %s or 'auto'" - % (backend, backends)) + % (backend, backends)) # so explore starting from it till the 'end' backends = backends[backends.index(backend):]