cleanup syslog & devicename
This commit is contained in:
parent
b3a343e7fa
commit
0f1b814d61
|
|
@ -127,8 +127,7 @@ void setup()
|
||||||
|
|
||||||
dlog.info(SETUP_TAG, F("Startup!"));
|
dlog.info(SETUP_TAG, F("Startup!"));
|
||||||
|
|
||||||
String id = "ESPNTP:" + String(ESP.getChipId(), 16);
|
snprintf(devicename, sizeof(devicename), "ESPNTP:%08x", ESP.getChipId());
|
||||||
strncpy(devicename, id.c_str(), 32);
|
|
||||||
dlog.info(SETUP_TAG, "Device name: %s", devicename);
|
dlog.info(SETUP_TAG, "Device name: %s", devicename);
|
||||||
|
|
||||||
dlog.info(SETUP_TAG, F("initializing display"));
|
dlog.info(SETUP_TAG, F("initializing display"));
|
||||||
|
|
@ -182,7 +181,7 @@ void setup()
|
||||||
if (syslog_host != nullptr && strlen(syslog_host) > 0 && syslog_port != 0)
|
if (syslog_host != nullptr && strlen(syslog_host) > 0 && syslog_port != 0)
|
||||||
{
|
{
|
||||||
dlog.info(SETUP_TAG, "enabling syslog: '%s:%u'", syslog_host, syslog_port);
|
dlog.info(SETUP_TAG, "enabling syslog: '%s:%u'", syslog_host, syslog_port);
|
||||||
dlog.begin(new DLogSyslogWriter("192.168.0.31", 514, devicename));
|
dlog.begin(new DLogSyslogWriter(syslog_host, syslog_port, devicename));
|
||||||
}
|
}
|
||||||
const char* url = wifi.getOTAURL();
|
const char* url = wifi.getOTAURL();
|
||||||
const char* fp = wifi.getOTAFP();
|
const char* fp = wifi.getOTAFP();
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9c5c16e9c8d90c3bd21a756c3a1487f3826b6e24
|
Subproject commit 91bb97ddb30082f629b3ff2c8fc992c20fbad822
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 26fd5f194b978ae19b5726022410b9cc86cfeb1d
|
Subproject commit 2a3cc650ca4d175945a19684dbd722f1f31db666
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2d194ea518e22424d12418d8a7b36ff4406dec5c
|
Subproject commit d9f3088cea0e4927b7d307d4bda2ff32907615e9
|
||||||
Loading…
Reference in New Issue
Block a user