Skip to content

Commit

Permalink
Release v2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hungnguyenhp committed Aug 15, 2023
1 parent 9fdd667 commit 13e021f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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)
if (!function_exists('_sn_helper_error_message_')) {
function _sn_helper_error_message_($e)
{
return 'Error File: ' . $e->getFile() . ' - Line: ' . $e->getLine() . ' - Code: ' . $e->getCode() . ' - Message: ' . $e->getMessage();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ProjectInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
interface ProjectInterface
{
const VERSION = '2.1.4';
const VERSION = '2.1.5';
const LAST_MODIFIED = '2023-08-15';
const AUTHOR_NAME = 'Hung Nguyen';
const AUTHOR_EMAIL = 'dev@nguyenanhung.com';
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($sdkConfig = array(), $module = '', $title = 'Bug'
}
} 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(), $module = '', $message
}
} 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 @@ -146,7 +146,7 @@ public static function telegram($sdkConfig = array(), $module = '', $message = '
}
} 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 @@ -189,7 +189,7 @@ public static function google_chat($sdkConfig = array(), $module = '', $message
}
} 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 @@ -227,7 +227,7 @@ public static function teams($sdkConfig = array(), $module = '', $message = '')
}
} 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 13e021f

Please sign in to comment.