diff --git a/src/functions.php b/src/functions.php index 8a807ed..baea2f5 100644 --- a/src/functions.php +++ b/src/functions.php @@ -32,7 +32,7 @@ function chat_text_alert ($chat, $text) $text, ]); } catch (Exception $ex) { - var_dump($ex->getMessage()); + app("log")->error("chat_notify_error", ['message' => $ex->getMessage()]); return null; } @@ -61,7 +61,7 @@ function user_text_alert ($username, $text) $text, ]); } catch (Exception $ex) { - var_dump($ex->getMessage()); + app("log")->error("chat_notify_error", ['message' => $ex->getMessage()]); return null; } @@ -97,7 +97,7 @@ function chat_card_alert ($chat, $title, $desc, $button, $url) $url, ]); } catch (Exception $ex) { - var_dump($ex->getMessage()); + app("log")->error("chat_notify_error", ['message' => $ex->getMessage()]); return null; } @@ -134,7 +134,7 @@ function user_card_alert ($username, $title, $desc, $button, $url) $url, ]); } catch (Exception $ex) { - var_dump($ex->getMessage()); + app("log")->error("chat_notify_error", ['message' => $ex->getMessage()]); return null; } @@ -175,7 +175,7 @@ function user_mp_alert ($username, $appid, $title, $page = null, $desc = null, $ $emphasisFirstItem ]); } catch (Exception $ex) { - var_dump($ex->getMessage()); + app("log")->error("chat_notify_error", ['message' => $ex->getMessage()]); return null; } @@ -215,7 +215,7 @@ function tag_mp_alert ($tag, $appid, $title, $page = null, $desc = null, $items $emphasisFirstItem ]); } catch (Exception $ex) { - var_dump($ex->getMessage()); + app("log")->error("chat_notify_error", ['message' => $ex->getMessage()]); return null; }