only things I have that are constant running:
2 classes:
A. for logging
B. tcp/ip stack .
some external scripts (Popen() for expect to communicate via ssh ) but they run may be once an hour.
..
just tested: . if I use the indigo log in my logger class and NOT writing to an external file , there are NO errors..
but writing to a file instead of calling indigo.server.log SHOULD not do anything??
it is this section that is active:
- Code: Select all
else: # print to external logfile
try:
if len(self.logFile) < 3: return # not properly defined
f = open(self.logFile,"a")
except Exception, e:
indigo.server.log(u"in Line '%s' has error='%s'" % (sys.exc_traceback.tb_lineno, e))
try:
f.close()
except:
pass
return
if msgLevel == "all" or self.debugLevel.find("all") > -1 or self.debugLevel.find(msgLevel) >-1:
ts = datetime.datetime.now().strftime("%H:%M:%S")
if type == u"":
f.write((ts+u" "+u" ".ljust(20) +u"-" + text + u"\n").encode("utf8"))
else:
f.write((ts+" " +type.ljust(20) +u"-" + text + u"\n").encode("utf8"))
f.close()
return
if msgLevel == "smallErr":
ts = datetime.datetime.now().strftime("%H:%M:%S")
f.write(u"----------------------------------------------------------------------------------\n")
f.write((ts+u" ".ljust(12)+u"-"+text+u"\n").encode("utf8"))
f.write(u"----------------------------------------------------------------------------------\n")
f.close()
return
if msgLevel == "bigErr":
ts = datetime.datetime.now().strftime("%H:%M:%S")
f.write(u"==================================================================================\n")
f.write((ts+u" "+u" ".ljust(12)+u"-"+text+u"\n").encode("utf8"))
f.write(u"==================================================================================\n")
f.close()
return
return
I really don't see anything that is wrong.. and it only happens when the tcpio stack is active..
..??
Karl