og logs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
diff --git a/lib/auth/openstack/swift/cache.ex b/lib/auth/openstack/swift/cache.ex
index bffeb86..00a4a35 100644
--- a/lib/auth/openstack/swift/cache.ex
+++ b/lib/auth/openstack/swift/cache.ex
@@ -168,7 +168,6 @@ defmodule ExOvh.Auth.Openstack.Swift.Cache do
{:reply, :ok, _identity} = GenServer.call(self(), :add_lock)
{:reply, :ok, _identity} = GenServer.call(self(), :update_identity)
{:reply, :ok, identity} = GenServer.call(self(), :remove_lock)
- identity |> Og.log_return(__ENV__, :debug)
expires = to_seconds(identity.token.expires)
monitor_expiry(expires)
end
@@ -191,7 +190,6 @@ defmodule ExOvh.Auth.Openstack.Swift.Cache do
defp to_seconds(identity) do
- identity |> Og.log_return(__ENV__, :debug)
iso_time = identity.token.expires
{:ok, expiry_ndt, offset} = Calendar.NaiveDateTime.Parse.iso8601(iso_time)
offset =
diff --git a/lib/auth/openstack/swift/webstorage.ex b/lib/auth/openstack/swift/webstorage.ex
index b2cfb33..2862750 100644
--- a/lib/auth/openstack/swift/webstorage.ex
+++ b/lib/auth/openstack/swift/webstorage.ex
@@ -14,9 +14,7 @@ defmodule ExOvh.Auth.Openstack.Swift.Cache.Webstorage do
Og.context(__ENV__, :debug)
properties = ExOvh.Ovh.V1.Webstorage.Query.get_service(cdn_name) |> ovh_client.request!() |> Map.fetch!(:body)
- |> Og.log_return(__ENV__, :debug)
credentials = ExOvh.Ovh.V1.Webstorage.Query.get_credentials(cdn_name) |> ovh_client.request!() |> Map.fetch!(:body)
- |> Og.log_return(__ENV__, :debug)
webstorage =
%{
diff --git a/lib/auth/ovh/cache.ex b/lib/auth/ovh/cache.ex
index 3e03e99..caa8496 100644
--- a/lib/auth/ovh/cache.ex
+++ b/lib/auth/ovh/cache.ex
@@ -53,13 +53,11 @@ defmodule ExOvh.Auth.Ovh.Cache do
defp api_time_request(client) do
Og.context(__ENV__, :debug)
- client |> Og.log_return(__ENV__)
- ovh_config = client.config() |> Og.log_return(__ENV__)
+ ovh_config = client.config()
method = :get
uri = ovh_config[:endpoint] <> ovh_config[:api_version] <> "/auth/time"
body = ""
headers = [{"Content-Type", "application/json; charset=utf-8"}]
- client |> Og.log_return(__ENV__)
httpoison_opts = client.httpoison_config()
options = httpoison_opts
resp = HTTPoison.request!(method, uri, body, headers, options)
diff --git a/lib/mix/tasks/ovh.ex b/lib/mix/tasks/ovh.ex
index 4660cf4..05a1ed3 100644
--- a/lib/mix/tasks/ovh.ex
+++ b/lib/mix/tasks/ovh.ex
@@ -296,7 +296,6 @@ defmodule Mix.Tasks.Ovh do
method = :post
uri = Defaults.endpoints()[opts_map[:endpoint]] <> opts_map[:api_version] <> Defaults.consumer_key_suffix()
- |> Og.log_return(__ENV__)
body = %{ accessRules: access_rules, redirection: redirect_uri } |> Poison.encode!()
headers = Map.merge(Enum.into(@default_headers, %{}), Enum.into([{"X-Ovh-Application", opts_map[:application_key]}], %{})) |> Enum.into([])
options = @default_options
@@ -387,8 +386,6 @@ defmodule Mix.Tasks.Ovh do
options = @default_options
resp = HTTPoison.request!(method, uri, body, headers, options)
- resp |> Og.log_return(__ENV__)
-
error_msg1 = "Failed to bind the consumer token to the application. Please try to validate the consumer token manually at #{validation_url}"
error_msg2 = "Invalid validity period entered for the consumer token. Please try to validate the consumer token manually at #{validation_url}"
cond do
diff --git a/lib/ovh/v1/cloud/cloudstorage/query.ex b/lib/ovh/v1/cloud/cloudstorage/query.ex
index ff07586..e95f333 100644
--- a/lib/ovh/v1/cloud/cloudstorage/query.ex
+++ b/lib/ovh/v1/cloud/cloudstorage/query.ex
@@ -194,7 +194,7 @@ defmodule ExOvh.Ovh.V1.Cloud.Cloudstorage.Query do
## Example
- ExOvh.Ovh.V1.Cloud.Cloudstorage.Query.modify_container_cors(service_name, container_id, "http://localhost:4001/") |> ExOvh.Ovh.prepare_request() |> Og.log_return() |> ExOvh.Ovh.request!()
+ ExOvh.Ovh.V1.Cloud.Cloudstorage.Query.modify_container_cors(service_name, container_id, "http://localhost:4001/") |> ExOvh.Ovh.prepare_request() |> ExOvh.Ovh.request!()
## Notes
@@ -239,7 +239,7 @@ defmodule ExOvh.Ovh.V1.Cloud.Cloudstorage.Query do
## Example
- ExOvh.Ovh.V1.Cloud.Cloudstorage.Query.modify_container_cors(service_name, container_id, "http://localhost:4001/") |> ExOvh.Ovh.prepare_request() |> Og.log_return() |> ExOvh.Ovh.request!()
+ ExOvh.Ovh.V1.Cloud.Cloudstorage.Query.modify_container_cors(service_name, container_id, "http://localhost:4001/") |> ExOvh.Ovh.prepare_request() |> ExOvh.Ovh.request!()
## Notes
diff --git a/lib/supervisor.ex b/lib/supervisor.ex
index 9a176e5..68a6f7d 100644
--- a/lib/supervisor.ex
+++ b/lib/supervisor.ex
@@ -36,7 +36,7 @@ defmodule ExOvh.Supervisor do
sup_tree =
case webstorage_config do
:nil ->
- Og.log("No webstorage config found. Skipping initiation of OVH webstorage cdn service", :debug)
+ Og.log(__ENV__, "No webstorage config found. Skipping initiation of OVH webstorage cdn service", :debug)
sup_tree
_webstorage_config ->
webstorage_client = Module.concat(client, Swift.Webstorage)
@@ -47,7 +47,7 @@ defmodule ExOvh.Supervisor do
sup_tree =
case cloudstorage_config do
:nil ->
- Og.log("No cloudstorage config found. Skipping initiation of OVH cloudstorage service", :debug)
+ Og.log(__ENV__, "No cloudstorage config found. Skipping initiation of OVH cloudstorage service", :debug)
sup_tree
_cloudstorage_config ->
cloudstorage_client = Module.concat(client, Swift.Cloudstorage)