diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php index f78f551a21..a98c1b14f5 100644 --- a/core/lib/Drupal/Core/Render/Renderer.php +++ b/core/lib/Drupal/Core/Render/Renderer.php @@ -570,11 +570,11 @@ public function executeInRenderContext(RenderContext $context, callable $callabl // Set the provided context and call the callable, it will use that context. $this->setCurrentRenderContext($context); - \Drupal::logger('file')->notice('Renderer calling setCurrentRenderContext', $context); + \Drupal::logger('file')->notice('Renderer calling setCurrentRenderContext'); $result = $callable(); // @todo Convert to an assertion in https://www.drupal.org/node/2408013 if ($context->count() > 1) { - \Drupal::logger('file')->notice('Bubbling failed. $context->count() > 1', $context); + \Drupal::logger('file')->notice('Bubbling failed. $context->count() > 1'); throw new \LogicException('Bubbling failed.'); } diff --git a/core/modules/file/file.module b/core/modules/file/file.module index f86322b9f2..e4056f782e 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -1430,7 +1430,7 @@ function file_managed_file_save_upload($element, FormStateInterface $form_state) return FALSE; } else { - \Drupal::logger('file')->notice('$all_files[$upload_name] not empty'); + \Drupal::logger('file')->notice('$all_files[$upload_name] not empty, file size: ' . $all_files[$upload_name]->getClientSize()); } $file_upload = $all_files[$upload_name];