TomWhitwell / SlowMovie

MIT License
349 stars 69 forks source link

Failure while parsing arguments is not logged #77

Closed jschrempp closed 3 years ago

jschrempp commented 3 years ago

If a problem occurs during the argument parsing process there is no log file entry created. This makes it appear that the service did not even attempt to start.

I recommend moving the initialization of the logger to be ahead of argument parsing. After initializing the logger, write one message to the log file "slowmovie starting". One of the arguments sets LogLevel; so this will have to be done after argument parsing.