In a clustered environment it's very useful to add some information to watchdog about the server who triggered an event. For example you want to know on which web server a php or database error occurred.

I attached a patch that adds two values to watchdog:
- server_addr contains the ip address of the server
- server_name contains the name of the virtual host.

CommentFileSizeAuthor
watchdog_server_info-D6.patch5.24 KBmkalkbrenner

Comments

mkalkbrenner’s picture

Title: Add Information about server to watchdog » Add Information about server to watchdog (D6)

I additionally started porting this patch to Drupal 7: #671070: Add Information about server to watchdog (D7)

naxoc’s picture

Status: Needs review » Closed (duplicate)

This cannot go into 6, so closing because there is an issue for 8: #671070: Add Information about server to watchdog (D7)