diff options
author | Michael Klishin <michael@rabbitmq.com> | 2014-06-22 15:50:04 +0400 |
---|---|---|
committer | Michael Klishin <michael@rabbitmq.com> | 2014-06-22 15:50:04 +0400 |
commit | 4d0bca608d414fb673384be2612384e4965150ca (patch) | |
tree | 4b7cdff682c0330800cb8c04d161b0b0c269e9f3 /src/rabbit.erl | |
parent | 5e4b76702f8e84b05a4ce4eb361cf113e2506c0d (diff) | |
download | rabbitmq-server-4d0bca608d414fb673384be2612384e4965150ca.tar.gz |
error_logger:warning_msg itself returns ok
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r-- | src/rabbit.erl | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index a1bd76aa..41b35b28 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -827,8 +827,7 @@ warn_if_kernel_poll_is_disabled() -> false -> error_logger:warning_msg("Kernel poll (epoll, kqueue, etc) " "is disabled. Throughput and " - "CPU utilization may worsen.~n"), - ok + "CPU utilization may worsen.~n") end. warn_if_few_async_threads() -> @@ -837,8 +836,7 @@ warn_if_few_async_threads() -> error_logger:warning_msg( "Erlang VM is running with ~s I/O threads, " "file I/O performance may worsen ~n", - [integer_to_list(AsyncThreads)]), - ok; + [integer_to_list(AsyncThreads)]); true -> ok end. @@ -849,11 +847,9 @@ warn_if_nagles_algorithm_is_enabled() -> "network I/O latency will be higher~n", case proplists:lookup(nodelay, IDCOpts) of none -> - error_logger:warning_msg(Msg), - ok; + error_logger:warning_msg(Msg); {nodelay, false} -> - error_logger:warning_msg(Msg), - ok; + error_logger:warning_msg(Msg); {nodelay, true} -> ok end. |