iro/iro.py
changeset 33 2b3f1b9a1e48
parent 25 7295e27e8c99
child 34 b82c60d84623
equal deleted inserted replaced
29:49ffb1f6cdbf 33:2b3f1b9a1e48
     9 #See the GNU General Public License for more details.
     9 #See the GNU General Public License for more details.
    10 
    10 
    11 #You should have received a copy of the GNU General Public License
    11 #You should have received a copy of the GNU General Public License
    12 #along with this program; if not, see <http://www.gnu.org/licenses/>.
    12 #along with this program; if not, see <http://www.gnu.org/licenses/>.
    13 
    13 
    14 import logging,multiprocessing
    14 import logging 
    15 #logging anfangen
    15 #logging anfangen
    16 logger=logging.getLogger("iro")
    16 logger=logging.getLogger("iro")
    17 logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)s(%(processName)s)-%(levelname)s: %(message)s')
    17 logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)s(%(processName)s)-%(levelname)s: %(message)s')
    18 
    18 
    19 
    19 
    86 
    86 
    87 
    87 
    88 def start(userlist):
    88 def start(userlist):
    89     from multiprocessing import Queue
    89     from multiprocessing import Queue
    90     from multiprocessing.managers import BaseManager
    90     from multiprocessing.managers import BaseManager
    91     import multiprocessing, logging
       
    92 
    91 
    93     
    92     
    94     class MyManager(BaseManager):
    93     class MyManager(BaseManager):
    95         pass
    94         pass
    96     
    95