This commit is contained in:
halcyon
2015-04-18 16:58:15 +08:00
parent 0873211d13
commit f19b274fcc
5 changed files with 79 additions and 70 deletions

View File

@@ -16,7 +16,7 @@ from jlog.models import Log
def log_hanler(id):
log = Log.objects.get(id=id)
pattern = re.compile(r'\[.*@.*\][\$#].*')
pattern = re.compile(r'(\[.*@.*\][\$#].*) | (mysql>.*)')
if log:
filename = log.log_path
if os.path.isfile(filename):