Catch console.log in main oslc.js