# How can I make the print station not print this sentence? Babylon.js v5.6.0 - WebGL2 - Parallel shader compilation

**URL:** <https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684>\
**Category:** Tutorials and tips\
**Created:** [June 25, 2022, 4:00am UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684 "2022-06-25T04:00:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yjkhaoyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yjkhaoyun/32/24190_2.png) [@yjkhaoyun](https://forum.babylonjs.com/u/yjkhaoyun)\
**Post date:** [June 25, 2022, 4:00am UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/1 "2022-06-25T04:00:38Z")

</div>

How can I make the print station not print this sentence? “Babylon.js v5.6.0 - WebGL2 - Parallel shader compilation ”

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/5/e53b71e99456e1ec460201c9c813a20ff36b0db3.png)

---

<div class="post-metadata">

**Author:** ![brianzinn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brianzinn/32/28013_2.png) [@brianzinn](https://forum.babylonjs.com/u/brianzinn)\
**Post date:** [June 25, 2022, 5:07am UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/2 "2022-06-25T05:07:59Z")

</div>

I don’t think it’s possible via the API - here is the constructor.

> <https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Engines/thinEngine.ts#L992>

You’d need to patch console.log (temporarily for Engine construction) is probably easiest solution.

---

<div class="post-metadata">

**Author:** ![yjkhaoyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yjkhaoyun/32/24190_2.png) [@yjkhaoyun](https://forum.babylonjs.com/u/yjkhaoyun)\
**Post date:** [June 25, 2022, 8:46am UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/3 "2022-06-25T08:46:58Z")

</div>

this solution is great 👍  
I am using React. I found two interception tools ‘npm i patch-console’ and 'npm i console-patch ', but neither of these two tools can effectively intercept logs. Do you know which ones are better toolkit?

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [June 25, 2022, 12:22pm UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/4 "2022-06-25T12:22:55Z")

</div>

You may try to use the simplest solution - redefine console.log function or just make it empty call

```auto
console.log = function() {}

```

---

<div class="post-metadata">

**Author:** ![brianzinn](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/brianzinn/32/28013_2.png) [@brianzinn](https://forum.babylonjs.com/u/brianzinn)\
**Post date:** [June 25, 2022, 3:36pm UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/5 "2022-06-25T15:36:09Z")

</div>

no need to use a library. make sure you capture what it was before to restore it.  
[no logging on engine creation | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#VXINCI)

you can learn more about the process by searching for “Monkey Patching”.

---

<div class="post-metadata">

**Author:** ![yjkhaoyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yjkhaoyun/32/24190_2.png) [@yjkhaoyun](https://forum.babylonjs.com/u/yjkhaoyun)\
**Post date:** [June 28, 2022, 5:12am UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/6 "2022-06-28T05:12:31Z")

</div>

Thank you for the solution, this is a great solution, simple and practical 👍

---

<div class="post-metadata">

**Author:** ![yjkhaoyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yjkhaoyun/32/24190_2.png) [@yjkhaoyun](https://forum.babylonjs.com/u/yjkhaoyun)\
**Post date:** [June 28, 2022, 5:16am UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/7 "2022-06-28T05:16:11Z")

</div>

this solution is correct 👍 💗

---

<div class="post-metadata">

**Author:** ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)\
**Post date:** [June 28, 2022, 9:36am UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/8 "2022-06-28T09:36:00Z")

</div>

That’s a lot of work just to hide the fact that you are using babylon.js.  
I am biased, I know, but why would you not want that to display in the console.log? what user is influenced by that in any way?

---

<div class="post-metadata">

**Author:** ![yjkhaoyun](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/yjkhaoyun/32/24190_2.png) [@yjkhaoyun](https://forum.babylonjs.com/u/yjkhaoyun)\
**Post date:** [June 28, 2022, 1:35pm UTC](https://forum.babylonjs.com/t/how-can-i-make-the-print-station-not-print-this-sentence-babylon-js-v5-6-0-webgl2-parallel-shader-compilation/31684/9 "2022-06-28T13:35:33Z")

</div>

My friend, you misunderstood, I have been recommending babylonjs to many people, and the developers of babylonjs are also very enthusiastic, great, and selfless, they are contributing to human civilization.  
The reason it needs to be hidden is that the client made this request when I was developing the project for the client, and in the production environment the print table is required to be clean, that’s all.  
I believe that one day babylonjs will become a more popular framework for gaming than unity3D
