Fix error in handling gcc-rest logging