mirror of
https://github.com/Py-KMS-Organization/py-kms.git
synced 2025-05-13 22:54:57 -04:00
adjusted logging format, patched $DISPLAY error
This commit is contained in:
parent
b13d212f05
commit
750713d0cf
5 changed files with 35 additions and 13 deletions
|
@ -198,9 +198,11 @@ class kmsBase:
|
|||
loggersrv.info("SKU ID: %s" % infoDict["skuId"])
|
||||
loggersrv.info("License Status: %s" % infoDict["licenseStatus"])
|
||||
loggersrv.info("Request Time: %s" % local_dt.strftime('%Y-%m-%d %H:%M:%S %Z (UTC%z)'))
|
||||
loggersrv.mini("", extra = {'host': socket.gethostname() + " [" + self.srv_config["ip"] + "]",
|
||||
'status' : infoDict["licenseStatus"],
|
||||
'product' : infoDict["skuId"]})
|
||||
|
||||
if self.srv_config['loglevel'] == 'MINI':
|
||||
loggersrv.mini("", extra = {'host': socket.gethostname() + " [" + self.srv_config["ip"] + "]",
|
||||
'status' : infoDict["licenseStatus"],
|
||||
'product' : infoDict["skuId"]})
|
||||
|
||||
if self.srv_config['sqlite'] and self.srv_config['dbSupport']:
|
||||
sql_update(self.dbName, infoDict)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue