I`m not sure this variable is really needed. You only print exception in case when it appears, therefore it will always print exc value in log, or will not be used at all.