When checking the syslog entries after the merge of #3036, I noticed that whitespace is not being trimmed (and never has been, I checked some old entries). This should fix it.
Note that the syslog-ng daemon should be restarted after changes to includes/syslog.php.
Syslog trim whitespace
Auto-Deploy finished, Test PR at http://3171.ci.librenms.org or https://3171.ci.librenms.org