CLOUDSTACK-6105: Fixed the issue where Logs were not getting generated properly

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>