Skip to content

Commit

Permalink
chore(linter): make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed May 27, 2024
1 parent 5674022 commit 447603c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/placeos-rest-api/controllers/modules.cr
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ module PlaceOS::Api
query = %({#{stream}="core"} | logfmt | source = "#{current_module.id}" | level = "[E]")
results = client.query_range(query, 20, error_timestamp - 1.hour, error_timestamp, Loki::Direction::Backward)
entries = Array(String).new
results.response_data.result.as(Loki::Model::Streams).each do |stream|
stream.entries.each { |entry| entries << (entry.line.try &.gsub("+ ", "") || "\n") }
results.response_data.result.as(Loki::Model::Streams).each do |res_stream|
res_stream.entries.each { |entry| entries << (entry.line.try &.gsub("+ ", "") || "\n") }
end

entries
Expand Down

0 comments on commit 447603c

Please sign in to comment.