promoted logStatus to top level