Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit also fixes of other potential issues and improves logging.