From 6701ce8c1a403539f7735fb73a260607e3c45136 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 1 May 2018 22:53:41 -0500 Subject: [PATCH] comment out superfluous debug statements --- app/Support/Metar.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/Support/Metar.php b/app/Support/Metar.php index 529f0053..1178f39f 100644 --- a/app/Support/Metar.php +++ b/app/Support/Metar.php @@ -408,8 +408,8 @@ class Metar implements \ArrayAccess $method = 'get_'.static::$method_names[$this->method]; $token = $this->raw_parts[$this->part]; if ($this->$method($token) === true) { - $this->set_debug('Token "'.$token.'" is parsed by method: '.$method.', '. - ($this->method - $current_method).' previous methods skipped.'); + /*$this->set_debug('Token "'.$token.'" is parsed by method: '.$method.', '. + ($this->method - $current_method).' previous methods skipped.');*/ $current_method = $this->method; $this->method++; break; @@ -566,7 +566,7 @@ class Metar implements \ArrayAccess $this->part++; } - $this->set_debug('TAF information detected.'); + //$this->set_debug('TAF information detected.'); $this->set_result_value('taf', true); return true; } @@ -617,7 +617,6 @@ class Metar implements \ArrayAccess $observed_time = mktime($hour, $minute, 0, $month, $day, date('Y')); $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); @@ -1400,11 +1399,11 @@ class Metar implements \ArrayAccess } // Process debug messages - if ($debug = $parser->debug()) { + /*if ($debug = $parser->debug()) { foreach ($debug as $message) { $this->set_debug('Recursion: '.$message); } - } + }*/ // Process parse errors if ($errors = $parser->errors()) {