bobbydams / py-pinger

A monitoring tool written in Python using gevent and Flask
MIT License
2 stars 2 forks source link

Two loggers are logging #1

Open nhoening opened 6 years ago

nhoening commented 6 years ago

Here is an excerpt from my pinger.log:

2018-09-07 19:50:02,873 INFO ---- Attempting to start Flask service! ----
2018-09-07 19:50:02,873 INFO ---- Attempting to start Flask service! ----
2018-09-07 19:50:02,874 INFO Terminate me by kill -TERM 27192
2018-09-07 19:50:02,874 INFO Terminate me by kill -TERM 27192
2018-09-07 19:50:02,909 INFO 2018-09-07 19:50:02.909053: Pinging https://staging.a1-bvp.com/api/ops/getLatestTaskRun?name=get_weather_forecasts
2018-09-07 19:50:02,909 INFO 2018-09-07 19:50:02.909053: Pinging https://staging.a1-bvp.com/api/ops/getLatestTaskRun?name=get_weather_forecasts
2018-09-07 19:50:02,914 INFO 2018-09-07 19:50:02.914421: Pinging https://staging.a1-bvp.com/api/ops/getLatestTaskRun?name=run_forecasting_jobs
2018-09-07 19:50:02,914 INFO 2018-09-07 19:50:02.914421: Pinging https://staging.a1-bvp.com/api/ops/getLatestTaskRun?name=run_forecasting_jobs
2018-09-07 19:51:07,903 INFO 2018-09-07 19:51:07.902989: Pinging https://staging.a1-bvp.com/api/ops/getLatestTaskRun?name=get_weather_forecasts
2018-09-07 19:51:07,903 INFO 2018-09-07 19:51:07.902989: Pinging https://staging.a1-bvp.com/api/ops/getLatestTaskRun?name=get_weather_forecasts
bobbydams commented 6 years ago

Hi Nic, Can you provide more details? Like how did you start the pinger? Did you stop and restart the service?

nhoening commented 6 years ago

I restarted the service.

Am 7. September 2018 22:05:05 MESZ schrieb Bobby Drake notifications@github.com:

Hi Nic, Can you provide more details? Like how did you start the pinger? Did you stop and restart the service?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/bobbydams/py-pinger/issues/1#issuecomment-419551330

-- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

nhoening commented 5 years ago

I believe there are to log variables, one in src/utils.py and one in src/pinger.py. We should have it only in one script, with the other script importing it from there.