In gelf_watchdog, there is a call to drupal_strlen.

If watchdog is called before a full bootstrap, this causes a fatal error.

One option would be to copy the internals of the drupal_strlen into the gelf module.

CommentFileSizeAuthor
#1 gelf_strlen.patch1.48 KBmalcomio

Comments

malcomio’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB

Here is a patch from SVN on the site I'm working on - will look at a git patch later

Dean Reilly’s picture

Status: Needs review » Closed (cannot reproduce)

The code doesn't use drupal_strlen:

http://drupalcode.org/project/gelf.git/blob/refs/heads/7.x-1.x:/gelf.mod...

So I'm closing this as cannot reproduce. Unicode support might be something to consider in future though.