Browse Source

add logger in exception commands

main
lucas cardoso 2 years ago
parent
commit
9c6ad5f24a
  1. 1
      app/Core/Commands.php

1
app/Core/Commands.php

@ -81,6 +81,7 @@ class Commands
return true; return true;
} }
} catch (\Exception $th) { } catch (\Exception $th) {
logger('Commands')->error($th->getMessage());
$this->atendimentoRepository->db->rollback(); $this->atendimentoRepository->db->rollback();
$this->api->enviarMsg($numero, CONF_NAME_REPONSE . " : " . $th->getMessage()); $this->api->enviarMsg($numero, CONF_NAME_REPONSE . " : " . $th->getMessage());
return true; return true;

Loading…
Cancel
Save