def uploadLog(self,id): strMsg = self.dumpToString() s,o = Client.uploadLog(strMsg,id) if s != 0: return "failed to upload log with {0}.".format(s) if o.startswith('http'): return '<a href="{0}">log</a>'.format(o) return o
def uploadLog(self, id): strMsg = self.dumpToString() s, o = Client.uploadLog(strMsg, id) if s != 0: return "failed to upload log with {0}.".format(s) if o.startswith('http'): return '<a href="{0}">log</a>'.format(o) return o
def uploadLog(self): if self.jediTaskID is None: return 'cannot find jediTaskID' strMsg = self.logger.dumpToString() s, o = Client.uploadLog(strMsg, self.jediTaskID) if s != 0: return "failed to upload log with {0}.".format(s) if o.startswith('http'): return '<a href="{0}">log</a>'.format(o) return o