Bugfixing: casting ints to string in log.error.