Skip to content

Commit

Permalink
added comment to tail endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Aug 16, 2021
1 parent a499cbe commit d6fbe0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/endpoints/tail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ local monitor_name = parm["monitor"]
local monitor = core.getbyname(monitor_name)

msgs = {}
if monitor then
msgs = monitor:cat(1)
if monitor then
msgs = monitor:cat(1) -- 1: LOCAL mode
end

return json.encode(msgs)

0 comments on commit d6fbe0f

Please sign in to comment.