mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 07:11:13 -05:00
Refactor: Implement full error logging
This commit is contained in:
@@ -148,13 +148,7 @@ export function ContactForm() {
|
||||
setCaptchaToken('');
|
||||
setCaptchaKey((prev) => prev + 1);
|
||||
|
||||
logger.info('Contact form submitted successfully', {
|
||||
submissionId: result?.submissionId,
|
||||
});
|
||||
} catch (error) {
|
||||
logger.error('Failed to submit contact form', {
|
||||
error: error instanceof Error ? error.message : String(error),
|
||||
});
|
||||
handleError(error, {
|
||||
action: 'submit_contact_form',
|
||||
metadata: { category: data.category },
|
||||
|
||||
Reference in New Issue
Block a user