Skip to content

Commit 0060097

Browse files
committed
refactor: remove debug logging
1 parent 4287527 commit 0060097

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Api/Adapter/AbstractTeamEntityAdapter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,9 @@ public function validateRequest(Request $request, ErrorStore $errorStore)
121121
$logger = $this->getServiceLocator()->get('Omeka\Logger');
122122

123123
if (Request::CREATE === $request->getOperation()){
124-
$logger->err('in the validator::create');
125124
//validate correct payload data exists
126125
if(!$request->getValue('team') || !is_numeric($request->getValue('team'))){
127-
$logger->err('our payload needs to indicate team with a numeric value');
128-
126+
$logger->err('your payload needs to indicate team with a numeric value');
129127
$errorStore->addError('o-module-teams:team', 'Your payload needs to indicate team with a numeric value');
130128
} else {
131129
$team = $this->getEntityManager()

src/Controller/IndexController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ public function batchDeleteAllAction()
283283
'action' => 'remove',
284284
'teams' => [$team_id => $query]
285285
]);
286-
$this->logger()->err($team_id);
287286
$this->messenger()->addSuccess('Removing items from team. This may take a while.'); // @translate
288287
} else {
289288
$this->messenger()->addFormErrors($form);

0 commit comments

Comments
 (0)