fix get log and report CAF-347 and CAF-349
Merge pull request #4022 from spigad/reportLogs

fix get log and report CAF-347 and CAF-349