When adding temporary debugging statements for diverse environments it may be easier to give them higher log levels

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the logging category.

Last Updated: 2021-05-16

When debugging in various environments, basic logging via console.log (or logger.info level in other contexts) may be suppressed.

Therefore it's wiser, when you want the output to be displayed without tweaking the environment, to go with a more serious log level like console.error() for the duration of your debugging (then remove it afterwards).

This increases the likelihood your program will print the needed debugging info in the diverse set of environments your code might find itself (various CI systems, colleague's computers, staging servers, etc.)