From f526b9985322ba1959ae04a682546b58efdab552 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Mon, 26 Jun 2023 12:25:47 +0200 Subject: [PATCH] Cleanup logging for badges processing --- initdb/02_3_2_signalk_public_functions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initdb/02_3_2_signalk_public_functions.sql b/initdb/02_3_2_signalk_public_functions.sql index 0432264..5b6db83 100644 --- a/initdb/02_3_2_signalk_public_functions.sql +++ b/initdb/02_3_2_signalk_public_functions.sql @@ -833,7 +833,7 @@ CREATE OR REPLACE FUNCTION public.badges_logbook_fn(IN logbook_id integer) RETUR -- Wake Maker = windspeeds above 15kts SELECT (preferences->'badges'->'Wake Maker') IS NOT NULL INTO _exist FROM auth.accounts a WHERE a.email = current_setting('user.email', false); - RAISE WARNING '-> Wake Maker %', _exist; + --RAISE WARNING '-> Wake Maker %', _exist; if _exist is false then -- is 15 knot+ logbook? select l.max_wind_speed into max_wind_speed from api.logbook l where l.id = logbook_id AND l.max_wind_speed >= 15 and vessel_id = current_setting('vessel.id', false);