Revert "fix bug 790: encode description before writing to syslog"

This reverts commit 9ac5db408d.

This is now fixed by a change in PVE::Cluster::log_msg().
This commit is contained in:
Dietmar Maurer 2015-10-29 17:44:17 +01:00
parent 8e6c2f694d
commit c13e17d0d4

View File

@ -789,12 +789,8 @@ my $update_vm_api = sub {
my @paramarr = (); # used for log message my @paramarr = (); # used for log message
foreach my $key (keys %$param) { foreach my $key (keys %$param) {
if ($key eq 'description') {
push @paramarr, "-$key", PVE::Tools::encode_text($param->{$key});
} else {
push @paramarr, "-$key", $param->{$key}; push @paramarr, "-$key", $param->{$key};
} }
}
my $skiplock = extract_param($param, 'skiplock'); my $skiplock = extract_param($param, 'skiplock');
raise_param_exc({ skiplock => "Only root may use this option." }) raise_param_exc({ skiplock => "Only root may use this option." })