Giter VIP home page Giter VIP logo

drupal-hoptoad's Introduction

Hoptoad for Drupal
-----------------------------------------------------------------------------
Hoptoad for Drupal enables you to send you sites error messages and exceptions
to hoptoadapp.com


Installation:
-----------------------------------------------------------------------------
  1. Add the libraries module if you don't already have it.

  2. Download/clone this github repo into your sites/default|domain/libraries
     https://github.com/rich/php-hoptoad-notifier
     The folder needs to be named php-hoptoad-notifier and Hoptoad.php must be
     placed within the Services folder in php-hoptoad-notifier.

     Also you need to apply these two patches unless it's already been
     included in a new release:
      https://github.com/rich/php-hoptoad-notifier/issues#issue/3
      https://github.com/rich/php-hoptoad-notifier/issues#issue/2

  3. Add $conf['hoptoad_api_key'] = 'your_api_key_here'; to your settings.php
     Optionally add any more settings, options below.

  4. Install and enable this module


Settings:
-----------------------------------------------------------------------------
Hoptoad for Drupal currently lacks any UI and relies on you to put settings
into your settings.php file. The only one you need to set is hoptoad_api_key.

* hoptoad_api_key (required)
  Your projects Hoptoad API key.

* hoptoad_path (optional)
  The absolute path (from your drupal root) to the php-hoptoad-notifier
  directory. If this is set Hoptoad will be loaded in hook_boot() and will
  be able to cover more errors.

  If this is not set Library API will be used in hook_init() to find the
  class instead.

* hoptoad_environment (optional)
  The environment the error will be reported under on your Hoptoad account.
  Preferably should be set to 'stagin', 'development' or something.

  Defaults to 'production'.

* hoptoad_client (optional)
  The method used when talking to hoptoadapp.com. Can be 'curl', 'pear' or
  'zend'.

  Defaults to 'curl'.

* hoptoad_report_directly (optional)
  If this is set to TRUE all error reports will be sent to Hoptoad the moment
  an error is encountered. If left out (or set to FALSE) all error reports
  will be put into a queue and sent to Hoptoad on cron.

  This is to avoid slow loading for regular users when an error has to be sent
  to Hoptoad.

* hoptoad_cron_limit (optional)
  The number of reports to sent to Hoptoad on each cron. Hoptoad client has a
  timeout of two seonds. So maximum execution time will be limit times two.

  Defaults to 30.

So in your settings.php file you need to enter:
  $conf['hoptoad_api_key'] = 'your_api_key_here';

drupal-hoptoad's People

Stargazers

 avatar  avatar  avatar  avatar

drupal-hoptoad's Issues

Queue errors

Errors should be queue and sent on cron. Now execution of the site is significantly slowed down due to error sending.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.