Use idomatic casting on API manager error logs.
Merge branch 'develop' into permissions