1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

logging: include function name

This commit is contained in:
urlbot
2015-07-19 02:04:59 +02:00
parent a8c51ae3b9
commit 37435d3e0c

View File

@@ -23,7 +23,7 @@ if 2 == len(sys.argv):
logging.basicConfig( logging.basicConfig(
level=logging.INFO, level=logging.INFO,
format=sys.argv[0]+' %(asctime)s %(levelname)-8s %(message)s' format=sys.argv[0]+' %(asctime)s %(levelname).1s %(funcName)-15s %(message)s'
) )
log = logging.getLogger() log = logging.getLogger()
log.plugin = log.info # ... probably fix this sometime (FIXME) log.plugin = log.info # ... probably fix this sometime (FIXME)