port logging fix to gulp script