From 25fe0fc4f0e60719a1c541239eda2233fcb67e5b Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 16 Feb 2020 21:13:40 -0800 Subject: [PATCH] Add forgotten file to github --- bsdfdisk/log_parser.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bsdfdisk/log_parser.pl diff --git a/bsdfdisk/log_parser.pl b/bsdfdisk/log_parser.pl new file mode 100755 index 000000000..b49bd5cca --- /dev/null +++ b/bsdfdisk/log_parser.pl @@ -0,0 +1,17 @@ +# log_parser.pl +# Functions for parsing this module's logs + +do 'bsdfdisk-lib.pl'; + +# parse_webmin_log(user, script, action, type, object, ¶ms) +# Converts logged information from this module into human-readable form +sub parse_webmin_log +{ +my ($user, $script, $action, $type, $object, $p) = @_; +if ($type eq "slice" || $type eq "part") { + return &text('log_'.$action.'_'.$type, + "".&html_escape($object).""); + } +return undef; +} +