Add logging

Prevent error in event profiling modules are not part of the standard
python library
This commit is contained in:
angelblue05 2016-08-21 16:28:26 -05:00
parent 00fd67cab3
commit 8cd4cb903e
2 changed files with 5 additions and 3 deletions

View file

@ -2,11 +2,10 @@
#################################################################################################
import cProfile
import inspect
import json
import logging
import pstats
import sqlite3
import StringIO
import os
@ -288,7 +287,9 @@ def profiling(sortby="cumulative"):
# Will print results to Kodi log
def decorator(func):
def wrapper(*args, **kwargs):
import cProfile
import pstats
pr = cProfile.Profile()
pr.enable()