Log cProfile even if not debuging
This commit is contained in:
parent
5b27dcca4e
commit
4073679d3f
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ def profiling(sortby="cumulative"):
|
||||||
s = StringIO.StringIO()
|
s = StringIO.StringIO()
|
||||||
ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
|
ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
|
||||||
ps.print_stats()
|
ps.print_stats()
|
||||||
log.debug(s.getvalue())
|
log.info(s.getvalue())
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue