comment out superfluous debug statements

This commit is contained in:
Nabeel Shahzad
2018-05-01 22:53:41 -05:00
parent 3a81e2ec27
commit 6701ce8c1a
+5 -6
View File
@@ -408,8 +408,8 @@ class Metar implements \ArrayAccess
$method = 'get_'.static::$method_names[$this->method]; $method = 'get_'.static::$method_names[$this->method];
$token = $this->raw_parts[$this->part]; $token = $this->raw_parts[$this->part];
if ($this->$method($token) === true) { if ($this->$method($token) === true) {
$this->set_debug('Token "'.$token.'" is parsed by method: '.$method.', '. /*$this->set_debug('Token "'.$token.'" is parsed by method: '.$method.', '.
($this->method - $current_method).' previous methods skipped.'); ($this->method - $current_method).' previous methods skipped.');*/
$current_method = $this->method; $current_method = $this->method;
$this->method++; $this->method++;
break; break;
@@ -566,7 +566,7 @@ class Metar implements \ArrayAccess
$this->part++; $this->part++;
} }
$this->set_debug('TAF information detected.'); //$this->set_debug('TAF information detected.');
$this->set_result_value('taf', true); $this->set_result_value('taf', true);
return true; return true;
} }
@@ -617,7 +617,6 @@ class Metar implements \ArrayAccess
$observed_time = mktime($hour, $minute, 0, $month, $day, date('Y')); $observed_time = mktime($hour, $minute, 0, $month, $day, date('Y'));
$this->set_observed_date($observed_time); $this->set_observed_date($observed_time);
$this->set_debug('Observation date is set from the METAR/TAF information (presented in format: ddhhmmZ)');
} }
$this->set_result_value('observed_day', $day); $this->set_result_value('observed_day', $day);
@@ -1400,11 +1399,11 @@ class Metar implements \ArrayAccess
} }
// Process debug messages // Process debug messages
if ($debug = $parser->debug()) { /*if ($debug = $parser->debug()) {
foreach ($debug as $message) { foreach ($debug as $message) {
$this->set_debug('Recursion: '.$message); $this->set_debug('Recursion: '.$message);
} }
} }*/
// Process parse errors // Process parse errors
if ($errors = $parser->errors()) { if ($errors = $parser->errors()) {