Changeset 1503 for pykota/trunk/bin
- Timestamp:
- 05/26/04 18:44:48 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1502 r1503 24 24 # 25 25 # $Log$ 26 # Revision 1.54 2004/05/26 16:44:48 jalet 27 # Now logs something when client hostname can't be extracted 28 # 26 29 # Revision 1.53 2004/05/26 14:49:35 jalet 27 30 # First try at saving the job-originating-hostname in the database … … 263 266 conffile = open(cupsdconf, "r") 264 267 except IOError : 268 self.logdebug("Unable to open %s" % cupsdconf) 265 269 return # file doesn't exist or can't be read 266 270 else : … … 281 285 pagelog = open(pagelogpath, "r") 282 286 except IOError : 287 self.logdebug("Unable to open %s" % pagelogpath) 283 288 return # no page log or can't read it, originating hostname unknown yet 284 289 else : … … 297 302 pagelog.close() 298 303 if matchingline is None : 304 self.logdebug("No matching line found in page_log") 299 305 return # correct line not found, job-originating-hostname unknown 300 306 else : … … 314 320 # tries to extract job-originating-hostname 315 321 clienthost = self.getJobOriginatingHostname(printer.Name, user.Name, self.jobid) 322 self.logdebug("Client Hostname : %s" % (clienthost or "Unknown")) 316 323 os.putenv("PYKOTAJOBORIGINATINGHOSTNAME", str(clienthost or "")) 317 324