How to disable JQMigrate LoggingDisable JQMIGRATE in Magento 2How best to restore the javascript console in Chrome/ developer tools in dev environment?Disable onChange event at page loadLogging to custom file is not working from module helperHow to disable category in magento 2 programmaticallyDisable a Custom Checkout StepMagento 2 custom logger 'Missing required argument $name'Magento 2 : Disable RequireJS (and all JavaScript)UI Component - Disable Fieldset CollectionMagento 2 layered navigation Ajax jquery problemMagento 2 - 2.3.1. Warning “JQMIGRATE: Migrate is installed with logging active, version 1.4.1”

Checkmate in 1 on a Tangled Board

Losing queen and then winning the game

What verb for taking advantage fits in "I don't want to ________ on the friendship"?

for xml path('') output

How can a valley surrounded by mountains be fertile and rainy?

How can I deal with extreme temperatures in a hotel room?

Put my student loan in parents’ second mortgage - help?

Security Patch SUPEE-11155 - Possible issues?

Word ending in "-ine" for rat-like

What kind of jet plane is this?

Does Latin have any neuter words for humans?

Is it okay to submit a paper from a master's thesis without informing the advisor?

Can European countries bypass the EU and make their own individual trade deal with the U.S.?

How is this practical and very old scene shot?

The warming up game

Could this problem be tackled using Mathematica?

What exactly did Ant-Man see that made him say that their plan worked?

Is it possible to have a character with proficiency in all martial weapons without proficiency in Medium armor?

Can one use the present progressive or gerund like an adjective?

13th chords on guitar

How do we separate rules of logic from non-logical constraints?

Do home values typically rise and fall at a consistent percent?

Does a return economy-class seat between London and San Francisco release 5.28 tonnes of CO2 equivalents?

How can I tell what kind of genitals people have without gender?



How to disable JQMigrate Logging


Disable JQMIGRATE in Magento 2How best to restore the javascript console in Chrome/ developer tools in dev environment?Disable onChange event at page loadLogging to custom file is not working from module helperHow to disable category in magento 2 programmaticallyDisable a Custom Checkout StepMagento 2 custom logger 'Missing required argument $name'Magento 2 : Disable RequireJS (and all JavaScript)UI Component - Disable Fieldset CollectionMagento 2 layered navigation Ajax jquery problemMagento 2 - 2.3.1. Warning “JQMIGRATE: Migrate is installed with logging active, version 1.4.1”






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?



enter image description here










share|improve this question




























    1















    We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?



    enter image description here










    share|improve this question
























      1












      1








      1








      We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?



      enter image description here










      share|improve this question














      We keep receiving this log and stack trace from JQMigrate, but it seems to just be a warning. Is there a way to just straight up disable logging in production?



      enter image description here







      magento-2.1 javascript jquery






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 21 '17 at 20:50









      codestrcodestr

      1982 silver badges17 bronze badges




      1982 silver badges17 bronze badges




















          4 Answers
          4






          active

          oldest

          votes


















          4














          I ended up overriding the core jquery-migrate in our theme so I could set the migrateMute option.



          In my theme require-jsconfig.js I set this override:



          var config = 
          paths:
          // disable jQuery migrate console output
          'jquery/jquery-migrate': 'js/jquery-migrate'




          Then copied the code jquery-migrate.js file to the theme js directory, and added this line towards the top:



          // Set to true to prevent console output; migrateWarnings still maintained
          jQuery.migrateMute = true;





          share|improve this answer























          • Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.

            – codestr
            Feb 5 '18 at 22:17











          • This helped, but didn't hide everything for me; I also had to include jQuery.migrateTrace = false;

            – user7290573
            Apr 18 at 9:15


















          2














          In order not to overwrite any magento core files I just created a javascript file with this code



          require(
          ['jquery'],
          function ($)
          $.migrateMute = true;
          $.migrateTrace = false;

          );


          I included the file in the head in default.xml



          <link src="js/disable-jquery-migrate-warnings.js" />





          share|improve this answer
































            1














            A little bit hacky way but it works. You can create requirejs-config.js file in your theme and reassign jquery-migrate to an empty file



            Example:



            var config = 
            paths:
            'jquery/jquery-migrate': 'js/empty'
            ,
            ;


            and create empty file js/empty.js






            share|improve this answer























            • This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.

              – codestr
              Nov 28 '17 at 15:19


















            0














            The solution posted by @thaddeusmt works great but I found an even better one.
            If you already have a js file you include everywhere, you can just add this to the top:



            require(['jquery'], function($) 
            $.migrateMute = true;
            );


            so it looks something like this:



            require(['jquery'], function($) 
            $.migrateMute = true;
            );
            // the rest of the js file...
            require([
            "jquery",
            "jquery/ui",
            "mage/translate",
            "domReady!",
            "Magento_Ui/js/modal/modal"
            ], function ($)
            // ...
            );





            share|improve this answer

























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "479"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f194224%2fhow-to-disable-jqmigrate-logging%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              4














              I ended up overriding the core jquery-migrate in our theme so I could set the migrateMute option.



              In my theme require-jsconfig.js I set this override:



              var config = 
              paths:
              // disable jQuery migrate console output
              'jquery/jquery-migrate': 'js/jquery-migrate'




              Then copied the code jquery-migrate.js file to the theme js directory, and added this line towards the top:



              // Set to true to prevent console output; migrateWarnings still maintained
              jQuery.migrateMute = true;





              share|improve this answer























              • Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.

                – codestr
                Feb 5 '18 at 22:17











              • This helped, but didn't hide everything for me; I also had to include jQuery.migrateTrace = false;

                – user7290573
                Apr 18 at 9:15















              4














              I ended up overriding the core jquery-migrate in our theme so I could set the migrateMute option.



              In my theme require-jsconfig.js I set this override:



              var config = 
              paths:
              // disable jQuery migrate console output
              'jquery/jquery-migrate': 'js/jquery-migrate'




              Then copied the code jquery-migrate.js file to the theme js directory, and added this line towards the top:



              // Set to true to prevent console output; migrateWarnings still maintained
              jQuery.migrateMute = true;





              share|improve this answer























              • Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.

                – codestr
                Feb 5 '18 at 22:17











              • This helped, but didn't hide everything for me; I also had to include jQuery.migrateTrace = false;

                – user7290573
                Apr 18 at 9:15













              4












              4








              4







              I ended up overriding the core jquery-migrate in our theme so I could set the migrateMute option.



              In my theme require-jsconfig.js I set this override:



              var config = 
              paths:
              // disable jQuery migrate console output
              'jquery/jquery-migrate': 'js/jquery-migrate'




              Then copied the code jquery-migrate.js file to the theme js directory, and added this line towards the top:



              // Set to true to prevent console output; migrateWarnings still maintained
              jQuery.migrateMute = true;





              share|improve this answer













              I ended up overriding the core jquery-migrate in our theme so I could set the migrateMute option.



              In my theme require-jsconfig.js I set this override:



              var config = 
              paths:
              // disable jQuery migrate console output
              'jquery/jquery-migrate': 'js/jquery-migrate'




              Then copied the code jquery-migrate.js file to the theme js directory, and added this line towards the top:



              // Set to true to prevent console output; migrateWarnings still maintained
              jQuery.migrateMute = true;






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jan 30 '18 at 17:14









              thaddeusmtthaddeusmt

              9535 silver badges18 bronze badges




              9535 silver badges18 bronze badges












              • Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.

                – codestr
                Feb 5 '18 at 22:17











              • This helped, but didn't hide everything for me; I also had to include jQuery.migrateTrace = false;

                – user7290573
                Apr 18 at 9:15

















              • Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.

                – codestr
                Feb 5 '18 at 22:17











              • This helped, but didn't hide everything for me; I also had to include jQuery.migrateTrace = false;

                – user7290573
                Apr 18 at 9:15
















              Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.

              – codestr
              Feb 5 '18 at 22:17





              Going to mark this as the selected answer, as it's a bit cleaner than the first method that was given.

              – codestr
              Feb 5 '18 at 22:17













              This helped, but didn't hide everything for me; I also had to include jQuery.migrateTrace = false;

              – user7290573
              Apr 18 at 9:15





              This helped, but didn't hide everything for me; I also had to include jQuery.migrateTrace = false;

              – user7290573
              Apr 18 at 9:15













              2














              In order not to overwrite any magento core files I just created a javascript file with this code



              require(
              ['jquery'],
              function ($)
              $.migrateMute = true;
              $.migrateTrace = false;

              );


              I included the file in the head in default.xml



              <link src="js/disable-jquery-migrate-warnings.js" />





              share|improve this answer





























                2














                In order not to overwrite any magento core files I just created a javascript file with this code



                require(
                ['jquery'],
                function ($)
                $.migrateMute = true;
                $.migrateTrace = false;

                );


                I included the file in the head in default.xml



                <link src="js/disable-jquery-migrate-warnings.js" />





                share|improve this answer



























                  2












                  2








                  2







                  In order not to overwrite any magento core files I just created a javascript file with this code



                  require(
                  ['jquery'],
                  function ($)
                  $.migrateMute = true;
                  $.migrateTrace = false;

                  );


                  I included the file in the head in default.xml



                  <link src="js/disable-jquery-migrate-warnings.js" />





                  share|improve this answer















                  In order not to overwrite any magento core files I just created a javascript file with this code



                  require(
                  ['jquery'],
                  function ($)
                  $.migrateMute = true;
                  $.migrateTrace = false;

                  );


                  I included the file in the head in default.xml



                  <link src="js/disable-jquery-migrate-warnings.js" />






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 20 at 9:25









                  Pierre Gauthier

                  356 bronze badges




                  356 bronze badges










                  answered May 8 '18 at 6:42









                  Popa FelicianPopa Felician

                  412 bronze badges




                  412 bronze badges





















                      1














                      A little bit hacky way but it works. You can create requirejs-config.js file in your theme and reassign jquery-migrate to an empty file



                      Example:



                      var config = 
                      paths:
                      'jquery/jquery-migrate': 'js/empty'
                      ,
                      ;


                      and create empty file js/empty.js






                      share|improve this answer























                      • This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.

                        – codestr
                        Nov 28 '17 at 15:19















                      1














                      A little bit hacky way but it works. You can create requirejs-config.js file in your theme and reassign jquery-migrate to an empty file



                      Example:



                      var config = 
                      paths:
                      'jquery/jquery-migrate': 'js/empty'
                      ,
                      ;


                      and create empty file js/empty.js






                      share|improve this answer























                      • This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.

                        – codestr
                        Nov 28 '17 at 15:19













                      1












                      1








                      1







                      A little bit hacky way but it works. You can create requirejs-config.js file in your theme and reassign jquery-migrate to an empty file



                      Example:



                      var config = 
                      paths:
                      'jquery/jquery-migrate': 'js/empty'
                      ,
                      ;


                      and create empty file js/empty.js






                      share|improve this answer













                      A little bit hacky way but it works. You can create requirejs-config.js file in your theme and reassign jquery-migrate to an empty file



                      Example:



                      var config = 
                      paths:
                      'jquery/jquery-migrate': 'js/empty'
                      ,
                      ;


                      and create empty file js/empty.js







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 7 '17 at 9:50









                      JmanJman

                      1112 bronze badges




                      1112 bronze badges












                      • This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.

                        – codestr
                        Nov 28 '17 at 15:19

















                      • This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.

                        – codestr
                        Nov 28 '17 at 15:19
















                      This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.

                      – codestr
                      Nov 28 '17 at 15:19





                      This works and I'll mark as accepted since its the only solution thats been offered, but I'd rather avoid having to make the request for the file at all if it's not going to be used.

                      – codestr
                      Nov 28 '17 at 15:19











                      0














                      The solution posted by @thaddeusmt works great but I found an even better one.
                      If you already have a js file you include everywhere, you can just add this to the top:



                      require(['jquery'], function($) 
                      $.migrateMute = true;
                      );


                      so it looks something like this:



                      require(['jquery'], function($) 
                      $.migrateMute = true;
                      );
                      // the rest of the js file...
                      require([
                      "jquery",
                      "jquery/ui",
                      "mage/translate",
                      "domReady!",
                      "Magento_Ui/js/modal/modal"
                      ], function ($)
                      // ...
                      );





                      share|improve this answer



























                        0














                        The solution posted by @thaddeusmt works great but I found an even better one.
                        If you already have a js file you include everywhere, you can just add this to the top:



                        require(['jquery'], function($) 
                        $.migrateMute = true;
                        );


                        so it looks something like this:



                        require(['jquery'], function($) 
                        $.migrateMute = true;
                        );
                        // the rest of the js file...
                        require([
                        "jquery",
                        "jquery/ui",
                        "mage/translate",
                        "domReady!",
                        "Magento_Ui/js/modal/modal"
                        ], function ($)
                        // ...
                        );





                        share|improve this answer

























                          0












                          0








                          0







                          The solution posted by @thaddeusmt works great but I found an even better one.
                          If you already have a js file you include everywhere, you can just add this to the top:



                          require(['jquery'], function($) 
                          $.migrateMute = true;
                          );


                          so it looks something like this:



                          require(['jquery'], function($) 
                          $.migrateMute = true;
                          );
                          // the rest of the js file...
                          require([
                          "jquery",
                          "jquery/ui",
                          "mage/translate",
                          "domReady!",
                          "Magento_Ui/js/modal/modal"
                          ], function ($)
                          // ...
                          );





                          share|improve this answer













                          The solution posted by @thaddeusmt works great but I found an even better one.
                          If you already have a js file you include everywhere, you can just add this to the top:



                          require(['jquery'], function($) 
                          $.migrateMute = true;
                          );


                          so it looks something like this:



                          require(['jquery'], function($) 
                          $.migrateMute = true;
                          );
                          // the rest of the js file...
                          require([
                          "jquery",
                          "jquery/ui",
                          "mage/translate",
                          "domReady!",
                          "Magento_Ui/js/modal/modal"
                          ], function ($)
                          // ...
                          );






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 14 '18 at 12:55









                          ZankarZankar

                          1686 bronze badges




                          1686 bronze badges



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Magento Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f194224%2fhow-to-disable-jqmigrate-logging%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                              Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?