logger fix for ec2