Skip to content

Commit b90a761

Browse files
Adjust to HousePortal implicit events
1 parent e953b6d commit b90a761

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

houserelays.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ int main (int argc, const char **argv) {
211211
UseHousePortal = 1;
212212
}
213213
houselog_initialize ("relays", argc, argv);
214-
houselog_event ("SERVICE", "relays", "START", "ON %s", HostName);
214+
215215
houseconfig_default ("--config=relays");
216216
const char *error = houseconfig_load (argc, argv);
217217
if (error) {
@@ -234,6 +234,7 @@ int main (int argc, const char **argv) {
234234

235235
echttp_static_route ("/", "/usr/local/share/house/public");
236236
echttp_background (&hc_background);
237+
houselog_event ("SERVICE", "relays", "STARTED", "ON %s", houselog_host());
237238
echttp_loop();
238239
}
239240

0 commit comments

Comments
 (0)