Skip to content

Commit

Permalink
fix: prefix logs with [NextLS] (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Jun 20, 2023
1 parent de9ba56 commit 36d8603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/next_ls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ defmodule NextLS do
wait_until(fn ->
NextLS.Runtime.ready?(runtime)
end) do
GenLSP.error(lsp, "Failed to start runtime")
GenLSP.error(lsp, "[NextLS] Failed to start runtime")
raise "Failed to boot runtime"
end

Expand Down Expand Up @@ -297,7 +297,7 @@ defmodule NextLS do
end

def handle_info({:log, message}, lsp) do
GenLSP.log(lsp, String.trim(message))
GenLSP.log(lsp, "[NextLS] " <> String.trim(message))

{:noreply, lsp}
end
Expand Down

0 comments on commit 36d8603

Please sign in to comment.