Small tweak to logmsg to output to system debug.