These are chat archives for canjs/canjs

20th
May 2016
Mason Shin
@minsooshin
May 20 2016 21:50
@matthewp I have a question about can.dev.logLevel
after I added it to my main js file, production package has issue
it doesn’t render the stache pages
<script type="text/javascript"
          src="<%= stealPath %>"
          env="<%= environment %>"
          bundles-path="<%= bundlePath %>"
          main="trinity" ></script>

  <script type="text/javascript">
    (function disableDevLog() {
      if (window.can) {
        can.dev.logLevel = 2;
      } else {
        setTimeout(disableDevLog, 1000);
      }
    })();
  </script>
Mason Shin
@minsooshin
May 20 2016 22:16
found the solution :)
if (process.env.NODE_ENV === 'development') {
  can.dev.logLevel = 2;
}