Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ shards:

placeos-frontend-loader:
git: https://github.com/placeos/frontend-loader.git
version: 2.7.1+git.commit.9972ac267ea4a24a4a120a449c7c05f7b26ad54b
version: 2.7.1+git.commit.61aa561e3cfd1dd44e59a84d8e5051a386f2fcae

placeos-log-backend:
git: https://github.com/place-labs/log-backend.git
Expand Down Expand Up @@ -267,7 +267,7 @@ shards:

search-ingest:
git: https://github.com/placeos/search-ingest.git
version: 2.11.3+git.commit.15283cd94ced2726c056be7bfb3afc36c6ae1254
version: 2.11.3+git.commit.f7624ba5319a284db7294c784daed3fe08f7cd25

secrets-env: # Overridden
git: https://github.com/spider-gazelle/secrets-env.git
Expand Down
2 changes: 1 addition & 1 deletion src/placeos-rest-api/controllers/modules.cr
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ module PlaceOS::Api
client = Loki::Client.from_env
labels = client.list_labels.data
stream = labels.try &.includes?("container") ? "container" : "app"
query = %({#{stream}="core"} | source = "#{current_module.id}" |~ "(?i)exception" | level = "ERROR|[E]")
query = %({#{stream}="core"} | source = "#{current_module.id}" |~ "(?i)exception" | level =~ "ERROR|[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 |res_stream|
Expand Down
Loading