Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mantisbt/mantisbt
base: a83d43fe1b0b
Choose a base ref
...
head repository: mantisbt/mantisbt
compare: 0e2c6b469d7c
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Jan 14, 2013

  1. Copy the full SHA
    aadfbcb View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2013

  1. 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
    dregad committed Jan 17, 2013
    Copy the full SHA
    ad5f2f7 View commit details
    Browse the repository at this point in the history
  2. 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
    dregad committed Jan 17, 2013
    Copy the full SHA
    0e2c6b4 View commit details
    Browse the repository at this point in the history