[C] Simplfy compression when logging.