Centralized Logging

This commit is contained in:
angelblue05 2016-06-18 19:48:19 -05:00
parent 6ebabf7805
commit 354877d31c
1 changed files with 6 additions and 5 deletions

View File

@ -2,8 +2,10 @@
#################################################################################################
import utils
from sqlite3 import OperationalError
import clientinfo
from utils import Logging
#################################################################################################
@ -13,15 +15,14 @@ class Embydb_Functions():
def __init__(self, embycursor):
global log
log = Logging(self.__class__.__name__).log
self.embycursor = embycursor
self.clientInfo = clientinfo.ClientInfo()
self.addonName = self.clientInfo.getAddonName()
def logMsg(self, msg, lvl=1):
className = self.__class__.__name__
utils.logMsg("%s %s" % (self.addonName, className), msg, lvl)
def getViews(self):