(ctx context.Context, logger slog.Logger, subsystem BackgroundSubsystem)
| 22 | } |
| 23 | |
| 24 | func BackgroundTaskFieldsBytes(ctx context.Context, logger slog.Logger, subsystem BackgroundSubsystem) []byte { |
| 25 | af := BackgroundTaskFields(subsystem) |
| 26 | |
| 27 | wriBytes, err := json.Marshal(af) |
| 28 | if err != nil { |
| 29 | logger.Error(ctx, "marshal additional fields for background audit", slog.Error(err)) |
| 30 | return []byte("{}") |
| 31 | } |
| 32 | |
| 33 | return wriBytes |
| 34 | } |
no test coverage detected