send_syslog: include a hostname
This commit is contained in:
parent
b57938c692
commit
810afdf526
1 changed files with 1 additions and 1 deletions
2
log.cpp
2
log.cpp
|
@ -124,7 +124,7 @@ void setloguid(const int uid, const int gid)
|
||||||
|
|
||||||
void send_syslog(const int ll, const std::string & what)
|
void send_syslog(const int ll, const std::string & what)
|
||||||
{
|
{
|
||||||
std::string msg = format("<%d>%s", 16 * 8 + ll, what.c_str());
|
std::string msg = format("<%d>PDP11 %s", 16 * 8 + ll, what.c_str());
|
||||||
|
|
||||||
int s = socket(AF_INET, SOCK_DGRAM, 0);
|
int s = socket(AF_INET, SOCK_DGRAM, 0);
|
||||||
if (s != -1) {
|
if (s != -1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue