From a6bfbef92672d96e47d9684bcd1985ec4655c9c6 Mon Sep 17 00:00:00 2001 From: Edon Gashi Date: Thu, 7 May 2020 15:12:23 +0200 Subject: [PATCH] Move shadow db manager verbose logs to debug level --- air/lib/air/psql_server/shadow_db/manager.ex | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/air/lib/air/psql_server/shadow_db/manager.ex b/air/lib/air/psql_server/shadow_db/manager.ex index 4424f0dcd6..2a87c1832f 100644 --- a/air/lib/air/psql_server/shadow_db/manager.ex +++ b/air/lib/air/psql_server/shadow_db/manager.ex @@ -183,10 +183,16 @@ defmodule Air.PsqlServer.ShadowDb.Manager do defp normalize_column(%{"name" => name, "type" => type}), do: %{name: name, type: type} defp update_shadow_db(state, tables) do - Logger.info("data source definition changed for #{state.data_source_name}, updating shadow database") + Logger.debug(fn -> + "Data source definition changed for #{state.data_source_name}/#{state.user.id}, updating shadow database" + end) + ensure_db!(state.user, state.data_source_name) update_tables_definition(state, tables) - Logger.info("shadow database for #{state.data_source_name} updated") + + Logger.debug(fn -> + "Shadow database for #{state.data_source_name}/#{state.user.id}, updated" + end) end defp ensure_db!(user, data_source_name) do