[PATCH 20 of 23 cubicweb V2] [database/pool/ux] point to the option to modify in timeout exception

Laurent Peuch cortex at worlddomination.be
Fri Jan 17 14:37:17 CET 2020


# HG changeset patch
# User Laurent Peuch <cortex at worlddomination.be>
# Date 1578400071 -3600
#      Tue Jan 07 13:27:51 2020 +0100
# Node ID 4375cf1b57c5f2a10d7cbf36e10611e817559143
# Parent  300ced80067f4aa881f327ff8aa4884038f28278
# Available At https://hg.logilab.org/users/lpeuch/cubicweb
#              hg pull https://hg.logilab.org/users/lpeuch/cubicweb -r 4375cf1b57c5
[database/pool/ux] point to the option to modify in timeout exception

diff --git a/cubicweb/server/repository.py b/cubicweb/server/repository.py
--- a/cubicweb/server/repository.py
+++ b/cubicweb/server/repository.py
@@ -302,11 +302,12 @@ class _CnxSetPool:
             #
             # On another subject, when benchmarking the server with 100 max connections, this
             # pooler never ended up opening more than 9 connections.
-            raise Exception("[db.pool] we couldn't get a connection in %s seconds, your server is \
-                            probably experiencing either a bug in the code (too many \
-                            uncommited/rolled back connections) or too much load (in which case \
-                            you can try to set a bigger " "connections pool size)" %
-                            self.max_timeout)
+            raise Exception("[db.pool] we couldn't get a connection in %s seconds, your server is "
+                            "probably experiencing either a bug in the code (too many "
+                            "uncommited/rolled back connections) or too much load (in which case "
+                            "you can try to set a bigger connections pool size by "
+                            "changing/setting the connections-pool-size option in your "
+                            "configuration file)" % self.max_timeout)
 
     def release(self, cnxset):
         if self._queue is None:



More information about the cubicweb-devel mailing list