Problem/Motivation

When a module logs not a string, but TranslatableMarkup, you get this error:

TypeError: Rollbar\DataBuilder::getCustomForPayload(): Argument #1 ($toLog) must be of type Throwable|string, Drupal\Core\StringTranslation\TranslatableMarkup given, called in /var/www/html/vendor/rollbar/rollbar/src/DataBuilder.php on line 382

Issue fork rollbar-3455906

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

elaman created an issue. See original summary.

intrafusion made their first commit to this issue’s fork.

  • intrafusion committed da48fc7e on 2.1.x authored by elaman
    Issue #3455906 by elaman: TranslatableMarkup vs Rollbar\DataBuilder::...
intrafusion’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.