replaced leftover console with logger