Fixing generation of oss when logging