Skip to content

Commit

Permalink
Disable logging
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-akya committed Sep 25, 2024
1 parent 51f6cba commit 8f41a18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/ex_cmd/process.ex
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ defmodule ExCmd.Process do
```
# sleep command does not watch for stdin or stdout, so closing the
# pipe does not terminate the sleep command.
iex> {:ok, p} = Process.start_link(~w(sleep 100000000), log: :stderr) # sleep indefinitely
iex> Process.await_exit(p, 1000) # ensure `await_exit` finish within `1000ms`. By default it waits for 5s
iex> {:ok, p} = Process.start_link(~w(sleep 100000000)) # sleep indefinitely
iex> Process.await_exit(p, 2000) # ensure `await_exit` finish within `2000ms`. By default it waits for 5s
{:error, :killed} # command exit due to SIGTERM
```
Expand Down
2 changes: 1 addition & 1 deletion test/ex_cmd/process_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ defmodule ExCmd.ProcessTest do
end

test "if await_exit kills the program" do
{:ok, s} = Process.start_link(~w(sleep 10000), log: :stderr)
{:ok, s} = Process.start_link(~w(sleep 10000))
assert_killed(Process.await_exit(s, 1000))
end

Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
end
)

Logger.configure(level: :debug)
Logger.configure(level: :warning)
ExUnit.start(capture_log: false)

0 comments on commit 8f41a18

Please sign in to comment.