Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found out what the problem was. It was in the ordering of the imports and the logging definition.</p> <p>The effect of the poor ordering was that the libraries that I imported before defining the logging using <code>logging.basicConfig()</code> defined the logging. This therefore took precedence to the logging that I was trying to define later using <code>logging.basicConfig()</code></p> <p>Below is how I needed to order it:</p> <pre><code>import logging ## for file logging logging.basicConfig(filename='server-soap.1.log', level=logging.INFO, format='%(asctime)s %(levelname)s %(threadName)-10s %(message)s',) from pysimplesoap.server import SoapDispatcher, SOAPHandler from BaseHTTPServer import HTTPServer import time,random,datetime,pytz,sys,threading from datetime import timedelta #DB import psycopg2, psycopg2.extras from psycopg2.pool import ThreadedConnectionPool #ESB Call from suds import WebFault from suds.client import Client </code></pre> <p>But the faulty ordering that I initially had was:</p> <pre><code>from pysimplesoap.server import SoapDispatcher, SOAPHandler from BaseHTTPServer import HTTPServer import logging import time,random,datetime,pytz,sys,threading from datetime import timedelta #DB import psycopg2, psycopg2.extras from psycopg2.pool import ThreadedConnectionPool #ESB Call from suds import WebFault from suds.client import Client ## for file logging logging.basicConfig(filename='server-soap.1.log', level=logging.INFO, format='%(asctime)s %(levelname)s %(threadName)-10s %(message)s',) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload