Enhance logging for Wake-on-LAN functionality in auto-boot-ollama-host.lua
This commit is contained in:
@@ -90,9 +90,10 @@ local function main()
|
|||||||
log(("Detected EHOSTUNREACH for Ollama (%s:%d)."):format(OLLAMA_HOST, OLLAMA_PORT))
|
log(("Detected EHOSTUNREACH for Ollama (%s:%d)."):format(OLLAMA_HOST, OLLAMA_PORT))
|
||||||
|
|
||||||
if WOL_MAC ~= "" then
|
if WOL_MAC ~= "" then
|
||||||
|
log(("Sending WOL to %s via %s:%d"):format(WOL_MAC, WOL_BCAST, WOL_PORT))
|
||||||
local ok, err = send_wol(WOL_MAC, WOL_BCAST, WOL_PORT)
|
local ok, err = send_wol(WOL_MAC, WOL_BCAST, WOL_PORT)
|
||||||
if ok then
|
if ok then
|
||||||
log(("Sent WOL to %s via %s:%d"):format(WOL_MAC, WOL_BCAST, WOL_PORT))
|
log(("Sucessfully sent WOL to %s via %s:%d"):format(WOL_MAC, WOL_BCAST, WOL_PORT))
|
||||||
else
|
else
|
||||||
log("WOL failed: " .. tostring(err))
|
log("WOL failed: " .. tostring(err))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user