Skip to content

Commit

Permalink
Release v0.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Jul 27, 2023
1 parent e044828 commit 219f36b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## v0.17.0

* Move most logs to Telemetry events instead. If you want to keep the same behavior as before, call this in your application's `start/2` callback:

```elixir
Xandra.Telemetry.attach_default_handler()
```

See the `Xandra.Telemetry` documentation for more information. This was started in v0.15.0, but now most logs have been moved to Telemetry.

## v0.16.0

* Add the `:sync_connect` option to `Xandra.Cluster.start_link/1`.
Expand Down
3 changes: 3 additions & 0 deletions lib/xandra/telemetry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ defmodule Xandra.Telemetry do
* `:xandra_protocol_module` - the protocol module for the Cassandra native protocol
"""
@doc since: "0.15.0"
@spec attach_default_handler() :: :ok
def attach_default_handler do
events = [
Expand Down Expand Up @@ -244,6 +245,8 @@ defmodule Xandra.Telemetry do
:ok
end

# Used for debugging Xandra itself.
@doc false
@spec attach_debug_handler() :: :ok
def attach_debug_handler do
events = [
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defmodule Xandra.Mixfile do

@repo_url "https://github.com/lexhide/xandra"

@version "0.16.0"
@version "0.17.0"

def project() do
[
Expand Down

0 comments on commit 219f36b

Please sign in to comment.