logger fix for aws