From f2dbe06d75b56fd461e48ca78ea23b044a001ad5 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 26 Sep 2019 21:08:05 +0100 Subject: [PATCH] Fix log types to be correct and consistent --- blocks/ORB/Edit.pm | 4 ++-- blocks/ORB/New.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/ORB/Edit.pm b/blocks/ORB/Edit.pm index 98ef514..d71e68a 100644 --- a/blocks/ORB/Edit.pm +++ b/blocks/ORB/Edit.pm @@ -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 }); diff --git a/blocks/ORB/New.pm b/blocks/ORB/New.pm index 478caa5..75f7b56 100644 --- a/blocks/ORB/New.pm +++ b/blocks/ORB/New.pm @@ -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 });