lib/Segment/Consumer.php
protected function handleError($code, $msg) {
    if (isset($this->options['error_handler'])) {
      $handler = $this->options['error_handler'];
      $handler($code, $msg);
    }

    if ($this->debug()) {
      error_log("[Analytics][" . $this->type . "] " . $msg);
    }
  }
protected function handleError($code, $msg) {
    if (isset($this->options['error_handler'])) {
      $handler = $this->options['error_handler'];
      $handler($code, $msg);
    }

    if ($this->debug()) {
      error_log("[Analytics][" . $this->type . "] " . $msg);
    }
  }
protected function handleError ( $ code , $ msg ) { if ( isset ( $ this -> options [ 'error_handler' ] ) ) { $ handler = $ this -> options [ 'error_handler' ] ; $ handler ( $ code , $ msg ) ; } if ( $ this -> debug ( ) ) { error_log ( "[Analytics][" . $ this -> type . "] " . $ msg ) ; } }
On an error, try and call the error handler, if debugging output to
error_log as well.
@param  string $code
@param  string $msg
On an error try and call the error handler if debugging output to error_log as well .