This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "SQLObject development repository".
The branch, master has been updated
via 052a6f478c817f98d2d0414455990fb19ba50cf3 (commit)
via 0aa1621e6bf08692525ebdb8fac69aed0bb42f10 (commit)
from 0fee3500a949c3d0021786792082483caa82920d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceforge.net/p/sqlobject/sqlobject/ci/052a6f478c817f98d2d0414455990fb19ba50cf3
commit 052a6f478c817f98d2d0414455990fb19ba50cf3
Author: Oleg Broytman <ph...@ph...>
Date: Tue Feb 21 22:09:53 2017 +0300
Pause for 5 seconds after starting Firebird
Give the server time to warm up.
diff --git a/.travis.yml b/.travis.yml
index cb55d65..848791a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,7 +24,7 @@ before_install:
# to create the test database.
- if [[ $TOXENV = *firebird* ]]; then
sudo sed -i /etc/default/firebird2.5 -e 's/=no/=yes/' &&
- sudo /etc/init.d/firebird2.5-super start &&
+ sudo /etc/init.d/firebird2.5-super start && sleep 5 &&
sudo touch /var/lib/firebird/create_test_db &&
sudo chmod 666 /var/lib/firebird/create_test_db &&
echo "CREATE DATABASE 'localhost:/tmp/test.fdb';" > /var/lib/firebird/create_test_db &&
http://sourceforge.net/p/sqlobject/sqlobject/ci/0aa1621e6bf08692525ebdb8fac69aed0bb42f10
commit 0aa1621e6bf08692525ebdb8fac69aed0bb42f10
Author: Oleg Broytman <ph...@ph...>
Date: Fri Feb 10 14:59:41 2017 +0300
Update docs: simplify logging example
[skip ci]
diff --git a/docs/SQLObject.rst b/docs/SQLObject.rst
index be704c2..003172e 100644
--- a/docs/SQLObject.rst
+++ b/docs/SQLObject.rst
@@ -1759,20 +1759,17 @@ empty SQLObject uses ``print``'s instead of logging; `loglevel` can be
To configure logging one can do something like that::
import logging
- logging.basicConfig()
- for handler in logging.root.handlers[:]:
- logging.root.removeHandler(handler)
- handler = logging.FileHandler("test.log")
- fmt = '[%(asctime)s] %(name)s %(levelname)s: %(message)s'
- handler.setFormatter(logging.Formatter(fmt))
- logging.root.addHandler(handler)
- logging.root.setLevel(logging.DEBUG)
+ logging.basicConfig(
+ filename='test.log',
+ format='[%(asctime)s] %(name)s %(levelname)s: %(message)s',
+ level=logging.DEBUG,
+ )
log = logging.getLogger("TEST")
log.info("Log started")
__connection__ = "sqlite:/:memory:?debug=1&logger=TEST&loglevel=debug"
-The code redirects SQLObject debug messages to the `test.log` file.
+The code redirects SQLObject debug messages to `test.log` file.
MySQL
-----
-----------------------------------------------------------------------
Summary of changes:
.travis.yml | 2 +-
docs/SQLObject.rst | 15 ++++++---------
2 files changed, 7 insertions(+), 10 deletions(-)
hooks/post-receive
--
SQLObject development repository
|