Skip to content

Commit

Permalink
Fix logging level
Browse files Browse the repository at this point in the history
Summary: Update log levels to better suit context

Reviewed By: kinto0

Differential Revision: D47189239

fbshipit-source-id: f6d59d27dddf55e742cbbcabd68993dce342299b
  • Loading branch information
NgaiJustin authored and facebook-github-bot committed Jul 3, 2023
1 parent f0a2714 commit 62d73c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/commands/kill.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _kill_processes_by_name(name: str) -> None:
LOG.info(f"Killing process {name} with pid {pid_to_kill}.")
os.kill(pid_to_kill, signal.SIGKILL)
except (ProcessLookupError, PermissionError) as exception:
LOG.debug(
LOG.error(
f"Failed to kill process {name} with pid {pid_to_kill} "
+ f"due to exception {exception}"
)
Expand Down
4 changes: 2 additions & 2 deletions client/commands/pyre_language_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def read_lsp_request(
message = await lsp.read_json_rpc(input_channel)
return message
except json_rpc.JSONRPCException as json_rpc_error:
LOG.debug(f"Exception occurred while reading JSON RPC: {json_rpc_error}")
LOG.error(f"Exception occurred while reading JSON RPC: {json_rpc_error}")
await lsp.write_json_rpc_ignore_connection_error(
output_channel,
json_rpc.ErrorResponse(
Expand Down Expand Up @@ -1363,7 +1363,7 @@ async def serve_requests(self) -> int:
if return_code is not None:
return return_code
except json_rpc.JSONRPCException as json_rpc_error:
LOG.debug(
LOG.error(
f"Exception occurred while processing request: {json_rpc_error}"
)
await lsp.write_json_rpc_ignore_connection_error(
Expand Down
2 changes: 1 addition & 1 deletion client/find_directories.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def find_typeshed() -> Optional[Path]:

return Path(typeshed.typeshed)
except ImportError:
LOG.debug("`import typeshed` failed.")
LOG.error("`import typeshed` failed.")

return None

Expand Down

0 comments on commit 62d73c7

Please sign in to comment.