Reduce complexity of main function
Reduce complexity of main function

martin-helmich/prometheus-nginxlog-exporter,martin-helmich/prometheus-nginxlog-exporter,martin-helmich/prometheus-nginxlog-exporter