No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    disable workbox logs

    Framework
    5
    9
    1380
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kenknight last edited by

      Hi all,

      Could someone please tell me how to properly disable / enable the workbox console log messages when developing in pwa mode?

      I’ve scoured the internet and while I’ve found the docs for workbox and how they specify doing it, I’ve not found a correlating spot in quasar to implement it successfully.

      Thank you,
      Ken

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        quasar.conf.js > pwa > workboxOptions
        It’s in the docs too.

        1 Reply Last reply Reply Quote 0
        • K
          kenknight last edited by

          Thank you. Yes I’ve seen that and many many other items regarding possible options, but none of these state how to specifically disable the logging. Prior to the 1.0xbeta I would have to edit one of the workbox files located in the node_modules source to change the log_level. Since the update this is no longer working. So I guess I am trying to find if anyone has a specific setting or details on how to do this withing the quasar framework.

          Thanks again,
          Ken

          1 Reply Last reply Reply Quote 0
          • K
            kenknight last edited by

            I think I may have figured out how to do it in Quasar. It appears to be disabled after I uncommented the workboxPluginMode: ‘InjectManifest’ in the quasar.conf.js and then put the following in the src-pwa/custom-serviceworker.js

            workbox.setConfig({
            debug: false,
            });

            That seems to have done it. Once we get to needing all the information that workbox provides we can set it to true, however, during our current development phase, it is just a lot of noise.

            Hope this helps someone else.

            1 Reply Last reply Reply Quote 4
            • ssuess
              ssuess last edited by

              I have tried your suggestion, but this is not working for me. And a really odd (and annoying) bug seems to be that if I switch back to just a regular SPA, it STILL shows those workbox logs. I can’t get rid of them without completely deleting the pwa folder. Any suggestions?

              B 1 Reply Last reply Reply Quote 0
              • B
                bfreed @ssuess last edited by

                @ssuess Did you ever find a solution? I’m running into the same thing. Interestingly, I don’t see the workbox items in the console on Chrome or Edge. But in Firefox, I see them even though I’m running dev in SPA mode (as another console log confirms).

                1 Reply Last reply Reply Quote 0
                • ssuess
                  ssuess last edited by ssuess

                  @bfreed oddly in latest versions of Quasar, that workbox debug setting seems to be working. I am running in PWA mode which would use a serviceworker, whereas SPA would presumably not. However, I also had to clear my browser cache to get these messages to stop, so you might try that in each browser where you see them.

                  J 1 Reply Last reply Reply Quote 1
                  • J
                    joaoserj @ssuess last edited by

                    @ssuess said in disable workbox logs:

                    @bfreed oddly in latest versions of Quasar, that workbox debug setting seems to be working. I am running in PWA mode which would use a serviceworker, whereas SPA would presumably not. However, I also had to clear my browser cache to get these messages to stop, so you might try that in each browser where you see them.

                    it’s works for me.

                    1 Reply Last reply Reply Quote 0
                    • ssuess
                      ssuess last edited by ssuess

                      Does anyone know if it is possible, in the current versions of quasar to setconfig debug to false (in quasar.conf.js)without using a custom service worker file?

                      I have tried the following, none of which work:
                      workboxOptions: { debug: false, skipWaiting: true, clientsClaim: true }
                      workboxOptions: { skipWaiting: true, clientsClaim: true, setConfig({ debug: false }) }
                      workboxOptions: { skipWaiting: true, clientsClaim: true, debug: false }

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post