Chain handler wasn't importing logging.
Change SecretKey to Secring.  This is more descriptive of its role.