Files
cli/components/engine/daemon
Sebastiaan van Stijn e9185f10cf Don't log error if file is already closed
When closing the log-file, and the file is already
closed, there's no need to log an error.

This patch adds a `closed` boolean to check if the
file was closed, and if so, skip closing the file.
This prevents errors like this being logged:

    level=error msg="Error closing logger: invalid argument"

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 07b51ed300429e88871e40b4d67dc031e2e8901c
Component: engine
2017-05-29 17:42:37 +02:00
..
…
2017-05-10 14:16:27 -07:00
2017-05-17 11:46:30 -07:00
…
2017-05-18 15:26:03 -07:00
…
…
2017-05-18 10:57:10 +08:00
2017-05-16 14:25:32 -07:00
2017-05-16 15:09:14 -07:00
…
2017-05-17 11:46:30 -07:00
2017-05-16 15:11:39 -07:00
…
…
2017-05-02 17:38:12 -04:00
2017-05-16 15:11:39 -07:00
…
2017-05-16 15:11:39 -07:00
…
2017-05-12 00:30:09 -04:00
…
…
2017-05-26 12:54:39 -07:00
…
…
…
2017-05-16 11:30:06 -07:00
…
…
2017-05-16 15:11:39 -07:00
2017-05-16 15:11:39 -07:00