2 # Functions for parsing this module's logs
4 do 'cluster-cron-lib.pl';
6 # parse_webmin_log(user, script, action, type, object, ¶ms)
7 # Converts logged information from this module into human-readable form
10 local ($user, $script, $action, $type, $object, $p, $long) = @_;
11 if ($action eq 'exec') {
12 local @server = split(/\0/, $p->{'run'});
14 return &text('log_run_l', "<tt>$p->{'cluster_command'}</tt>",
15 join(", ", map { $_ ? "<tt>$_</tt>"
16 : $text{'index_this'} } @server));
19 return &text('log_run', "<tt>$p->{'cluster_command'}</tt>",
23 elsif ($action eq 'deletes') {
24 return &text('log_deletes', $object);
27 local $l = $long ? "_l" : "";
28 return &text("log_${action}${l}", "<tt>$object</tt>",
29 "<tt>".&html_escape($p->{'cluster_command'})."</tt>");