You are here

protected static function S3fsStreamWrapper::_debug in S3 File System 7

Same name and namespace in other branches
  1. 7.2 S3fsStreamWrapper.inc \S3fsStreamWrapper::_debug()

Logging function used for debugging.

This function only writes anything if the global variable $_s3fs_debug is TRUE.

Parameters

string $msg: The message to debug log.

bool $internal: If this is TRUE, don't log $msg unless $_s3fs_debug_internal is TRUE.

40 calls to S3fsStreamWrapper::_debug()
S3fsStreamWrapper::chmod in ./S3fsStreamWrapper.inc
Changes permissions of the resource.
S3fsStreamWrapper::dirname in ./S3fsStreamWrapper.inc
Gets the name of the directory from a given path.
S3fsStreamWrapper::dir_closedir in ./S3fsStreamWrapper.inc
Support for closedir().
S3fsStreamWrapper::dir_opendir in ./S3fsStreamWrapper.inc
Support for opendir().
S3fsStreamWrapper::dir_readdir in ./S3fsStreamWrapper.inc
Support for readdir().

... See full list

File

./S3fsStreamWrapper.inc, line 1522
Drupal stream wrapper implementation for S3 File System.

Class

S3fsStreamWrapper
The stream wrapper class.

Code

protected static function _debug($msg, $internal = FALSE) {
  global $_s3fs_debug, $_s3fs_debug_internal;
  if ($_s3fs_debug && (!$internal || $_s3fs_debug_internal)) {
    debug($msg);
  }
}