Log site delete as info
This commit is contained in:
parent
1b2eee058c
commit
afd23849a6
1 changed files with 2 additions and 2 deletions
|
@ -1031,7 +1031,7 @@ class Site(object):
|
||||||
return self.settings.get("autodownloadoptional")
|
return self.settings.get("autodownloadoptional")
|
||||||
|
|
||||||
def delete(self):
|
def delete(self):
|
||||||
self.log.debug("Deleting site...")
|
self.log.info("Deleting site...")
|
||||||
s = time.time()
|
s = time.time()
|
||||||
self.settings["serving"] = False
|
self.settings["serving"] = False
|
||||||
self.saveSettings()
|
self.saveSettings()
|
||||||
|
@ -1042,7 +1042,7 @@ class Site(object):
|
||||||
self.content_manager.contents.db.deleteSite(self)
|
self.content_manager.contents.db.deleteSite(self)
|
||||||
self.updateWebsocket(deleted=True)
|
self.updateWebsocket(deleted=True)
|
||||||
self.storage.deleteFiles()
|
self.storage.deleteFiles()
|
||||||
self.log.debug(
|
self.log.info(
|
||||||
"Deleted site in %.3fs (greenlets: %s, workers: %s)" %
|
"Deleted site in %.3fs (greenlets: %s, workers: %s)" %
|
||||||
(time.time() - s, num_greenlets, num_workers)
|
(time.time() - s, num_greenlets, num_workers)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue