Changeset - bdfdfea84510
[Not reviewed]
default
0 4 0
Drew Perttula - 12 years ago 2013-06-04 23:51:57
drewp@bigasterisk.com
colored logs
Ignore-this: 74b7fb320ebca032b2976da3d00e05ca
4 files changed with 20 insertions and 6 deletions:
0 comments (0 inline, 0 general)
bin/rdfdb
Show inline comments
 
@@ -119,14 +119,14 @@ from rdflib import ConjunctiveGraph, URI
 
from light9.rdfdb.graphfile import GraphFile
 
from light9.rdfdb.patch import Patch, ALLSTMTS
 
from light9.rdfdb.rdflibpatch import patchQuads
 
from light9.rdfdb import syncedgraph
 

	
 
from twisted.internet.inotify import INotify
 
logging.basicConfig(level=logging.DEBUG)
 
log = logging.getLogger()
 
from run_local import log
 
log.setLevel(logging.DEBUG)
 

	
 
try:
 
    import sys
 
    sys.path.append("../homeauto/lib")
 
    from cycloneerr import PrettyErrorHandler
 
except ImportError:
bin/run_local.py
Show inline comments
 
@@ -14,7 +14,20 @@ def rce(self, exc, val, tb):
 
    if True:
 
        sys.excepthook(exc, val, tb)
 
    else:
 
        Failure(val, exc, tb).printDetailedTraceback()
 
Tkinter.Tk.report_callback_exception = rce
 

	
 
import coloredlogs, logging, time
 
log = logging.getLogger()
 

	
 
class CSH(coloredlogs.ColoredStreamHandler):
 
    def render_timestamp(self, created):
 
        return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(created)) + (
 
            "%.3f" % (created % 1)).lstrip('0')
 

	
 
    def render_name(self, name):
 
        return name
 

	
 
log.addHandler(CSH(show_hostname=False, show_name=True))
 

	
 
cgitb.enable(format='txt')
bin/subcomposer
Show inline comments
 
@@ -5,22 +5,21 @@ from optparse import OptionParser
 
import logging
 
import Tkinter as tk
 
import louie as dispatcher
 
from twisted.internet import reactor, tksupport, task
 
from rdflib import URIRef
 

	
 
import run_local
 
from run_local import log
 
from light9.dmxchanedit import Levelbox
 
from light9 import dmxclient, Patch, Submaster, showconfig, prof
 
from light9.uihelpers import toplevelat
 
from light9.rdfdb.syncedgraph import SyncedGraph
 
from light9.rdfdb import clientsession
 
from light9.tkdnd import initTkdnd, dragSourceRegister, dropTargetRegister
 

	
 
logging.basicConfig(level=logging.DEBUG)
 
log = logging.getLogger()
 
log.setLevel(logging.DEBUG)
 

	
 
class _NoNewVal(object):
 
    pass
 

	
 
class Observable(object):
 
    """
pydeps
Show inline comments
 
@@ -6,7 +6,9 @@ cyclone==1.1
 

	
 
web.py==0.37
 
restkit==4.2.1
 
ipython==0.13.2
 
nose==1.3.0
 
nose-alert==0.9.0
 
ipdb==0.7
 
\ No newline at end of file
 
ipdb==0.7
 
# waiting for https://github.com/xolox/python-coloredlogs/pull/1
 
git+git://github.com/drewp/python-coloredlogs@9803112ddf7d4cd7dd001912ad1aa482fb8383f6
0 comments (0 inline, 0 general)