diff --git a/application/libraries/Notifications.php b/application/libraries/Notifications.php index ca761c1d..9d62f3e6 100644 --- a/application/libraries/Notifications.php +++ b/application/libraries/Notifications.php @@ -187,7 +187,7 @@ class Notifications { } catch (Throwable $e) { - log_message('error', $e->getMessage()); + log_message('error', 'Notifications - Could not email confirmation details of appointment (' . ($appointment['id'] ?? '-') . ') : ' . $e->getMessage()); log_message('error', $e->getTraceAsString()); } } @@ -299,7 +299,7 @@ class Notifications { } catch (Throwable $e) { - log_message('error', $e->getMessage()); + log_message('error', 'Notifications - Could not email cancellation details of appointment (' . ($appointment['id'] ?? '-') . ') : ' . $e->getMessage()); log_message('error', $e->getTraceAsString()); } } diff --git a/application/libraries/Synchronization.php b/application/libraries/Synchronization.php index 3dfdaba5..3094a810 100644 --- a/application/libraries/Synchronization.php +++ b/application/libraries/Synchronization.php @@ -70,7 +70,7 @@ class Synchronization { $google_event = $this->CI->google_sync->add_appointment( $appointment, $provider, - $webhook, + $service, $customer, $settings ); @@ -84,7 +84,7 @@ class Synchronization { $this->CI->google_sync->update_appointment( $appointment, $provider, - $webhook, + $service, $customer, $settings ); @@ -92,7 +92,7 @@ class Synchronization { } catch (Throwable $e) { - log_message('error', $e->getMessage()); + log_message('error', 'Synchronization - Could not sync confirmation details of appointment (' . ($appointment['id'] ?? '-') . ') : ' . $e->getMessage()); log_message('error', $e->getTraceAsString()); } } @@ -126,7 +126,7 @@ class Synchronization { } catch (Throwable $e) { - log_message('error', $e->getMessage()); + log_message('error', 'Synchronization - Could not sync cancellation details of appointment (' . ($appointment['id'] ?? '-') . ') : ' . $e->getMessage()); log_message('error', $e->getTraceAsString()); } } @@ -170,7 +170,7 @@ class Synchronization { } catch (Throwable $e) { - log_message('error', $e->getMessage()); + log_message('error', 'Synchronization - Could not sync cancellation details of unavailability (' . ($appointment['id'] ?? '-') . ') : ' . $e->getMessage()); log_message('error', $e->getTraceAsString()); } } @@ -203,7 +203,7 @@ class Synchronization { } catch (Throwable $e) { - log_message('error', $e->getMessage()); + log_message('error', 'Synchronization - Could not sync cancellation details of unavailability (' . ($appointment['id'] ?? '-') . ') : ' . $e->getMessage()); log_message('error', $e->getTraceAsString()); } } diff --git a/application/libraries/Webhooks_client.php b/application/libraries/Webhooks_client.php index 89ae3501..b6a0cc0d 100644 --- a/application/libraries/Webhooks_client.php +++ b/application/libraries/Webhooks_client.php @@ -87,6 +87,7 @@ class Webhooks_client { catch (Throwable $e) { log_message('error', 'Webhooks Client - The webhook (' . ($webhook['id'] ?? NULL) . ') request received an unexpected exception: ' . $e->getMessage()); + log_message('error', $e->getTraceAsString()); } } }