Skip to content

Commit

Permalink
Release version 3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
hungnguyenhp committed Aug 15, 2023
1 parent f7e202f commit bef98f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions helpers/system_notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Date: 2/12/20
* Time: 11:00
*/
if (!function_exists('system_notification_error_message')) {
function system_notification_error_message($e): string
if (!function_exists('_sn_helper_error_message_')) {
function _sn_helper_error_message_($e): string
{
return 'Error File: ' . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Code: ' . $e->getCode() . ' - Message: ' . $e->getMessage();
}
Expand Down
10 changes: 5 additions & 5 deletions src/SystemNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static function mantis(array $sdkConfig = array(), string $module = '', s
}
} catch (Exception $e) {
if (function_exists('log_message')) {
log_message('error', system_notification_error_message($e));
log_message('error', _sn_helper_error_message_($e));
log_message('error', 'Error Trace As String: ' . $e->getTraceAsString());
}
}
Expand Down Expand Up @@ -105,7 +105,7 @@ public static function slack(array $sdkConfig = array(), string $module = '', st
}
} catch (Exception $e) {
if (function_exists('log_message')) {
log_message('error', system_notification_error_message($e));
log_message('error', _sn_helper_error_message_($e));
log_message('error', 'Error Trace As String: ' . $e->getTraceAsString());
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@ public static function telegram(array $sdkConfig = array(), string $module = '',
}
} catch (Exception $e) {
if (function_exists('log_message')) {
log_message('error', system_notification_error_message($e));
log_message('error', _sn_helper_error_message_($e));
log_message('error', 'Error Trace As String: ' . $e->getTraceAsString());
}
}
Expand Down Expand Up @@ -187,7 +187,7 @@ public static function google_chat(array $sdkConfig = array(), string $module =
}
} catch (Exception $e) {
if (function_exists('log_message')) {
log_message('error', system_notification_error_message($e));
log_message('error', _sn_helper_error_message_($e));
log_message('error', 'Error Trace As String: ' . $e->getTraceAsString());
}
}
Expand Down Expand Up @@ -225,7 +225,7 @@ public static function teams(array $sdkConfig = array(), string $module = '', st
}
} catch (Exception $e) {
if (function_exists('log_message')) {
log_message('error', system_notification_error_message($e));
log_message('error', _sn_helper_error_message_($e));
log_message('error', 'Error Trace As String: ' . $e->getTraceAsString());
}
}
Expand Down

0 comments on commit bef98f6

Please sign in to comment.