Remove whitespaces before double colon in errors and logs