Hacker News new | ask | show | jobs
by Will_Do 2434 days ago
What do you mean the old way?

Will it print what foo is if I type logger.info("{foo=}")?

1 comments

Logging.info(“%s %s”, name, country”) the string isn’t expanded if the logging is set to warn. While with your example the string is expanded then discarded