Added optional message to `thenLog` method