Skip to content

Commit

Permalink
Issue #34 - bw_trace() checks trace level
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Apr 15, 2016
1 parent b721494 commit 2fd1413
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/bwtrace.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php // (C) Copyright Bobbing Wide 2011-2015
<?php // (C) Copyright Bobbing Wide 2011-2016
if ( !defined( "BWTRACE_INCLUDED" ) ) {
define( "BWTRACE_INCLUDED", "2.0.7" );
define( "BWTRACE_INCLUDED", "2.0.12" );
define( "BWTRACE_FILE", __FILE__ );

/**
Expand Down Expand Up @@ -68,8 +68,8 @@
*/
if ( !function_exists( "bw_trace" ) ) {
function bw_trace( $text, $function=__FUNCTION__, $lineno=__LINE__, $file=__FILE__, $text_label=null, $level=BW_TRACE_ALWAYS ) {
global $bw_trace_on;
if ( $bw_trace_on ) {
global $bw_trace_on, $bw_trace_level;
if ( $bw_trace_on && ( $level <= $bw_trace_level ) ) {
bw_lazy_trace( $text, $function, $lineno, $file, $text_label, $level );
}
}
Expand Down

0 comments on commit 2fd1413

Please sign in to comment.