Making WordPress.org


Ignore:
Timestamp:
11/16/2018 06:38:39 PM (6 years ago)
Author:
iandunn
Message:

WordCamp Misc: Setup external for Slack\Send().

The API role doesn't exist on the production server, so we need a local copy of the Slack includes.

The logger was moved to load after Slack, so that any errors in the logger would trigger Slack notifications instead of failing silently.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r7839 r7855  
    508508        "text" => $text,
    509509    );
    510     require_once '/home/api/public_html/includes/slack-config.php';
     510
    511511    $send = new \Dotorg\Slack\Send( SLACK_ERROR_REPORT_URL );
    512512    $send->add_attachment( $message );
    513513
    514     // For now
    515     $send->send( 'vedanshu' );
     514    // @todo change to WORDCAMP_LOGS_SLACK_CHANNEL when ready
     515    $send->send( '@vedanshu' );
    516516    return false;
    517517}
Note: See TracChangeset for help on using the changeset viewer.