Source

Regnancy / config.py

Full commit
Dominic Kexel 8b6bb37 

Dominic Kexel 2b1f8ec 

Dominic Kexel 8b6bb37 
Dominic Kexel 965f8b0 
Dominic Kexel 43d3722 
Dominic Kexel 2b1f8ec 

Dominic Kexel 8b6bb37 
Dominic Kexel 510908d 
Dominic Kexel 2b1f8ec 
Dominic Kexel 8b6bb37 
Dominic Kexel 43d3722 
Dominic Kexel 8b6bb37 



Dominic Kexel 43d3722 
Dominic Kexel 2b1f8ec 
#!/usr/bin/python
# -*- coding: utf-8 -*-

import logging
from framework.logger import logcall
from framework.eventmanager import EventManager
import socket

LOG_FILENAME = 'log.out'
logging.basicConfig(filename=LOG_FILENAME, filemode='w', level=logging.DEBUG,
                    format="%(levelname)s - %(message)s")


def get_server_address():
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    s.connect(("archive.org", 80))
    return s.getsockname()[0]


log = logging.debug
methodlog = logcall