Livesearch doesn't log data to watchdog

manarth - June 21, 2008 - 16:47
Project:Live Search
Version:5.x-1.0
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:needs review
Description

Each live search generates a watchdog entry. The watchdog message is 'Search: %keys (%type).'

The %keys and %type variables are not being properly substituted.

The attached patch fixes the message using the same format/substitutions used by the core Search module: e.g.
Live Search: search term (Content).

The patch also changes the watchdog type to livesearch instead of , so it is clear which module generated the message.

#1

manarth - June 26, 2008 - 19:47

Patch attached.

AttachmentSize
livesearch.patch 296 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.