Fix log types to be correct and consistent
This commit is contained in:
parent
76c712737a
commit
f2dbe06d75
@ -97,7 +97,7 @@ sub _generate_edit {
|
||||
unless($self -> check_permission('recipe.edit', $args -> {"metadata_id"}));
|
||||
|
||||
if($self -> {"cgi"} -> param("editrecipe")) {
|
||||
$self -> log("recipe.edit", "User has submitted data for recipe $recipeid");
|
||||
$self -> log("recipe.edit", "User has submitted edited for recipe $recipeid");
|
||||
|
||||
$args = {};
|
||||
|
||||
@ -123,7 +123,7 @@ sub _generate_edit {
|
||||
|
||||
# Wrap the errors if there are any
|
||||
if($errors) {
|
||||
$self -> log("new", "Errors detected in addition: $errors");
|
||||
$self -> log("recipe.edit", "Errors detected in edit: $errors");
|
||||
|
||||
my $errorlist = $self -> {"template"} -> load_template("error/error_list.tem", {"%(message)s" => "{L_NEW_ERRORS}",
|
||||
"%(errors)s" => $errors });
|
||||
|
@ -65,7 +65,7 @@ sub _generate_new {
|
||||
|
||||
# Wrap the errors if there are any
|
||||
if($errors) {
|
||||
$self -> log("new", "Errors detected in addition: $errors");
|
||||
$self -> log("recipe.new", "Errors detected in addition: $errors");
|
||||
|
||||
my $errorlist = $self -> {"template"} -> load_template("error/error_list.tem", {"%(message)s" => "{L_NEW_ERRORS}",
|
||||
"%(errors)s" => $errors });
|
||||
|
Loading…
x
Reference in New Issue
Block a user