changed default log level from 'debug' to 'info'

fixed a debug output message
fixed html validity
This commit is contained in:
lars 2007-02-13 22:24:09 +00:00
parent 09fa49f070
commit 5425eaa9c0
3 changed files with 5 additions and 4 deletions

View file

@ -47,7 +47,7 @@ EventDir = /etc/cryptobox-server/events.d
[Log] [Log]
# possible values are "debug", "info", "warn" and "error" or numbers from # possible values are "debug", "info", "warn" and "error" or numbers from
# 0 (debug) to 7 (error) # 0 (debug) to 7 (error)
Level = debug Level = info
# where to write the log messages to? # where to write the log messages to?
# possible values are 'file' and 'syslog' # possible values are 'file' and 'syslog'

View file

@ -8,11 +8,11 @@
<?cs call:show_help(Lang.Plugins.volume_mount.Help.Close) ?> <?cs call:show_help(Lang.Plugins.volume_mount.Help.Close) ?>
<?cs call:print_form_header("umount", "volume_mount") ?> <?cs call:print_form_header("umount", "volume_mount") ?>
<p><table><tr><td> <table><tr><td>
<input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" /> <input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
<input type="hidden" name="action" value="umount" /> <input type="hidden" name="action" value="umount" />
<button type="submit"><?cs var:html_escape(Lang.Plugins.volume_mount.Button.Umount) ?></button> <button type="submit"><?cs var:html_escape(Lang.Plugins.volume_mount.Button.Umount) ?></button>
</td></tr></table></p> </td></tr></table>
</form> </form>
</fieldset> </fieldset>

View file

@ -144,7 +144,8 @@ class WebInterfaceDataset(dict):
self["Data.CurrentDisk.size"] = cbxTools.get_blockdevice_size_humanly( self["Data.CurrentDisk.size"] = cbxTools.get_blockdevice_size_humanly(
container.get_device()) container.get_device())
if is_mounted: if is_mounted:
self.cbox.log.debug("FOO:") self.cbox.log.debug("Retrieving container's data: %s" % \
container.get_name())
(size, avail, used) = container.get_capacity() (size, avail, used) = container.get_capacity()
percent = int(used)*100 / int(size) percent = int(used)*100 / int(size)
self.cbox.log.debug(percent) self.cbox.log.debug(percent)