From 2818e7e9cd1cac8f04c337e95871017ce161307f Mon Sep 17 00:00:00 2001 From: Hein Date: Mon, 10 Nov 2025 17:15:55 +0200 Subject: [PATCH] Remove so debug logs --- pkg/restheadspec/handler.go | 12 ++++++------ pkg/restheadspec/hooks.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/restheadspec/handler.go b/pkg/restheadspec/handler.go index 4a73ec1..ae63647 100644 --- a/pkg/restheadspec/handler.go +++ b/pkg/restheadspec/handler.go @@ -1171,11 +1171,11 @@ func (h *Handler) FetchRowNumber(ctx context.Context, tableName string, pkName s ) search WHERE search.%[2]s = ? `, - tableName, // [1] - table name - pkName, // [2] - primary key column name - sortSQL, // [3] - sort order SQL - whereSQL, // [4] - WHERE clause - joinSQL, // [5] - JOIN clauses + tableName, // [1] - table name + pkName, // [2] - primary key column name + sortSQL, // [3] - sort order SQL + whereSQL, // [4] - WHERE clause + joinSQL, // [5] - JOIN clauses ) logger.Debug("FetchRowNumber query: %s, pkValue: %s", queryStr, pkValue) @@ -1275,7 +1275,7 @@ func (h *Handler) setRowNumbersOnRecords(records any, offset int) { if rowNumberField.Kind() == reflect.Int64 { rowNum := int64(offset + i + 1) rowNumberField.SetInt(rowNum) - logger.Debug("Set RowNumber=%d on record %d", rowNum, i) + } } } diff --git a/pkg/restheadspec/hooks.go b/pkg/restheadspec/hooks.go index a3f2b56..cab8c2d 100644 --- a/pkg/restheadspec/hooks.go +++ b/pkg/restheadspec/hooks.go @@ -95,7 +95,7 @@ func (r *HookRegistry) RegisterMultiple(hookTypes []HookType, hook HookFunc) { func (r *HookRegistry) Execute(hookType HookType, ctx *HookContext) error { hooks, exists := r.hooks[hookType] if !exists || len(hooks) == 0 { - logger.Debug("No hooks registered for %s", hookType) + //logger.Debug("No hooks registered for %s", hookType) return nil } @@ -108,7 +108,7 @@ func (r *HookRegistry) Execute(hookType HookType, ctx *HookContext) error { } } - logger.Debug("All hooks for %s executed successfully", hookType) + //logger.Debug("All hooks for %s executed successfully", hookType) return nil }