Log when writing gzipped file.

Fixes bug when writing a gzipped file and no log message was output.