This commit is contained in:
halcyon
2015-04-18 18:04:03 +08:00
parent 9ab855fd92
commit bd2d7ce007
3 changed files with 31 additions and 27 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'(\[.*@.*\][\$#].*) | (mysql>.*)')
pattern = re.compile(r'([\[.*@.*\][\$#].* | mysql>.*])')
if log:
filename = log.log_path
if os.path.isfile(filename):