Fix forget to initialize activityrecognizer
Change log to limit to 5k chars otherwise performance gets really bad.