You are here

function tb_debug_log in TinyBrowser 7

Debug function

File

./tinybrowser.module, line 17

Code

function tb_debug_log($str) {
  if (is_array($str) || is_object($str)) {
    error_log(print_r($str, TRUE) . "\r\n", 3, "/tmp/tb.txt");
  }
  else {
    error_log($str . "\r\n", 3, "/tmp/tb.txt");
  }
}