diff --git a/openquake/server/tests/functional_test.py b/openquake/server/tests/functional_test.py
index <HASH>..<HASH> 100644
--- a/openquake/server/tests/functional_test.py
+++ b/openquake/server/tests/functional_test.py
@@ -117,8 +117,8 @@ class EngineServerTestCase(unittest.TestCase):
         tmpdb = '%s:%s' % (cls.tmpdb, cls.dbserverport)
         cls.fd, cls.errfname = tempfile.mkstemp()
         cls.dbs = subprocess.Popen(
-            [sys.executable, '-m', 'openquake.server.dbserver', tmpdb],
-            env=env, stderr=cls.fd)  # redirect the server errors
+            [sys.executable, '-m', 'openquake.server.dbserver',
+             tmpdb, cls.errfname], env=env, stderr=cls.fd)
         cls.proc = subprocess.Popen(
             [sys.executable, '-m', 'openquake.server.manage', 'runserver',
              cls.hostport, '--noreload', '--nothreading', 'tmpdb=' + tmpdb],
Passed the log file to the dbserver in the functional tests


Former-commit-id: 1dcd5d<I>b<I>f<I>b<I>a<I>ed [formerly 3cab<I>c5d<I>ee<I>af9f<I>aea<I>e<I>b]
Former-commit-id: <I>b0bbc<I>fbeba<I>c4f<I>e<I>