Remove so debug logs

This commit is contained in:
Hein 2025-11-10 17:15:55 +02:00
parent e39012ddbd
commit 2818e7e9cd
2 changed files with 8 additions and 8 deletions

View File

@ -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)
}
}
}

View File

@ -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
}