Commit 3ff780e3 authored by Stephanie Marcu's avatar Stephanie Marcu
Browse files

[c-c exlog] fix code and documentation

--HG--
branch : stable
parent 1e5ef464cade
......@@ -650,7 +650,7 @@ class ExamineLogCommand(Command):
except OSError, ex:
raise BadCommandUsage("can't open rql log file %s: %s"
% (filepath, ex))
for lineno, line in enumerate(file):
for lineno, line in enumerate(stream):
if not ' WHERE ' in line:
continue
try:
......
......@@ -26,7 +26,7 @@ in such a file:
.. sourcecode:: sh
$ cubicweb-ctl exlog < ~/myapp-rql.log
$ cubicweb-ctl exlog ~/myapp-rql.log
0.07 50 Any A WHERE X eid %(x)s, X firstname A {}
0.05 50 Any A WHERE X eid %(x)s, X lastname A {}
0.01 1 Any X,AA ORDERBY AA DESC WHERE E eid %(x)s, E employees X, X modification_date AA {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment