logfile is accessable via web
This commit is contained in:
parent
707fb71476
commit
89e06ff669
2 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,9 @@ class CryptoBoxWebserverSettings:
|
|||
## put all found Settings values in the dictionary
|
||||
for key in self.cbxPrefs["Settings"].keys():
|
||||
website.settings["Settings."+key] = self.cbxPrefs["Settings"][key]
|
||||
# for the logbook
|
||||
self.log.info(self.cbxPrefs)
|
||||
website.settings["Settings.Details"] = self.cbxPrefs["Log"]["Details"]
|
||||
#self.log.info(self.settings)
|
||||
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ class CryptoBoxWebserverSites(CryptoBox.CryptoBoxProps, CryptoBoxWebserverSettin
|
|||
'''be careful to name this method just "log" seems to be a
|
||||
reserved word'''
|
||||
self.__prepare("show_log")
|
||||
import filehandling
|
||||
self.settings["Data.Log"] = filehandling.read_file(self.settings["Settings.Details"])
|
||||
return website.render(self)
|
||||
|
||||
def status(self):
|
||||
|
|
Loading…
Reference in a new issue