From: GitHub <no...@gi...> - 2013-01-17 12:38:42
|
Branch: refs/heads/master Home: https://github.com/mantisbt/mantisbt Commit: aadfbcb6131ea1c12f087ce451441a33a3baa433 https://github.com/mantisbt/mantisbt/commit/aadfbcb6131ea1c12f087ce451441a33a3baa433 Author: Damien Regad <dam...@me...> Date: 2013-01-14 (Mon, 14 Jan 2013) Changed paths: M .gitignore Log Message: ----------- Added NetBeans IDE metadata directory to .gitignore Commit: ad5f2f7f0fa524a47014301798648646ff228e7f https://github.com/mantisbt/mantisbt/commit/ad5f2f7f0fa524a47014301798648646ff228e7f Author: Damien Regad <dam...@me...> Date: 2013-01-17 (Thu, 17 Jan 2013) Changed paths: M core/email_api.php Log Message: ----------- Improve logging when sending e-mails The email_api email_send() and email_send_all() functions have been modified to provide a better log trace in case of errors. A log entry is now printed in the following situations - a message as already been sent - the server is not responding and the batch sending is aborted - whenever a phpMailer exception is thrown in email_send() In addition, the log message gets the detailed error from phpMailer's ErrorInfo property instead of the exception's getMessage(), as in some cases (particularly when using PHPMAILER_METHOD_SMTP), the latter only contains partial information instead of the full error text. $t_emails_recipients_failed variable initialization has been removed as it was not used in the code. Fixes #15382 Commit: 0e2c6b469d7ce81a327b43b594c8f2e1e4e90de6 https://github.com/mantisbt/mantisbt/commit/0e2c6b469d7ce81a327b43b594c8f2e1e4e90de6 Author: Damien Regad <dam...@me...> Date: 2013-01-17 (Thu, 17 Jan 2013) Changed paths: M core/logging_api.php Log Message: ----------- Make log_event() calls print to stdout when running from CLI This simple modification to the logging_api allows command-line scripts such as send_emails.php to easily provide detailed information about their operations, provided that the appropriate log_level is set in config_inc.php. This output can then be redirected to log files, etc. Fixes #15382 Compare: https://github.com/mantisbt/mantisbt/compare/a83d43fe1b0b...0e2c6b469d7c |