Added debug error logging

这个提交包含在:
Peter Goodhall 2019-10-09 21:39:12 +01:00
父节点 4df3a6ce8b
当前提交 51419ad9e0

查看文件

@ -103,16 +103,22 @@ class Clublog extends CI_Controller {
$this->load->model('clublog_model'); $this->load->model('clublog_model');
$this->clublog_model->mark_qsos_sent($station_row->station_id); $this->clublog_model->mark_qsos_sent($station_row->station_id);
echo "Clublog upload for ".$station_row->station_callsign;
log_message('info', 'Clublog upload for '.$station_row->station_callsign.' successfully sent.');
} else { } else {
echo "Error ".$response; echo "Error ".$response;
log_message('error', 'Clublog upload for '.$station_row->station_callsign.' failed reason '.$response);
} }
// Delete the ADIF file used for clublog // Delete the ADIF file used for clublog
unlink('uploads/clublog'.$ranid.$station_row->station_id.'.adi'); unlink('uploads/clublog'.$ranid.$station_row->station_id.'.adi');
} }
} else { } else {
echo "Nothing awaiting upload to clublog for ".$station_row->station_callsign; echo "Nothing awaiting upload to clublog for ".$station_row->station_callsign;
log_message('info', 'Nothing awaiting upload to clublog for '.$station_row->station_callsign);
} }
} }
} }