def logerr(msg): logmsg(syslog.LOG_ERR, msg) # some unit labels are rather lengthy. this reduces them to something shorter.