You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/11/24 05:34:16 UTC

[GitHub] [incubator-superset] zhaoyongjie commented on a change in pull request #11418: feat: Getting since and until tuple from calendar grains

zhaoyongjie commented on a change in pull request #11418:
URL: https://github.com/apache/incubator-superset/pull/11418#discussion_r529213377



##########
File path: superset/utils/core.py
##########
@@ -1358,9 +1358,9 @@ def get_since_until(
                 # default matched case
                 since_and_until.append(f"DATETIME('{part}')")
 
-        logger.debug(f"Raw [time_range] text: {time_range}")
-        logger.debug(f"[since] datetime_eval text: {since_and_until[0]}")
-        logger.debug(f"[until] datetime_eval text: {since_and_until[1]}")
+        logger.debug("Raw [time_range] text: %s", time_range)
+        logger.debug("[since] datetime_eval text: %s", since_and_until[0])
+        logger.debug("[until] datetime_eval text: %s", since_and_until[1])

Review comment:
       pylint raise "logging-format-interpolation" warning. so using % string expression. You can refer to this [answer](https://stackoverflow.com/questions/34619790/pylint-message-logging-format-interpolation). 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org