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

Laurent Peuch cortex at worlddomination.be
Tue Jan 7 13:30:47 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 d2c1622e898b763459e895af0f6db6dfd0954140
# Parent  700d414ca5f1c620a3209c00fc31b0eee39944bc
# Available At https://hg.logilab.org/users/lpeuch/cubicweb
#              hg pull https://hg.logilab.org/users/lpeuch/cubicweb -r d2c1622e898b
[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
@@ -261,11 +261,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