xxx trans_logger: fix error code propagation