prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [FEATURE]Do not overwrite python logging configuration
  ## 🚨🚨 Feature Request
  
  Be able to use both `logging` and `hub` in the same python script
  
  ### Current behavior
  
  I found the following code has undesired behavior: when adding the line `import hub`, the logging configuration will be overwritten.
  
  ```python
  import logging
  import hub     # this will overwrite the logging config
  
  logging.basicConfig(filename = "sample.log", level = logging.DEBUG,
                      format = '%(asctime)s: %(filename)s: %(levelname)s: %(message)s')
  
  logger = logging.getLogger(__name__)
  
  logger.debug("this is a debug message")
  logger.info("this is an info message")
  logger.warning("this is a warning message")
  logger.error("this is an error message")
  
  ```
  
  
  
  
  
  </issue>
  <code>
  [start of hub/client/log.py]
  1 """
  2 License:
  3 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  4 If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
  5 """
  6 
  7 import logging
  8 import sys
  9 
  10 logger = logging.getLogger("hub")
  11 
  12 
  13 def configure_logger(debug=0):
  14     log_level = logging.DEBUG if debug == 1 else logging.INFO
  15     logging.basicConfig(format="%(message)s", level=log_level, stream=sys.stdout)
  16 
  17 
  18 configure_logger(0)
  19
  [end of hub/client/log.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/hub/client/log.py b/hub/client/log.py
  --- a/hub/client/log.py
  +++ b/hub/client/log.py
  @@ -12,7 +12,17 @@
   
   def configure_logger(debug=0):
       log_level = logging.DEBUG if debug == 1 else logging.INFO
  -    logging.basicConfig(format="%(message)s", level=log_level, stream=sys.stdout)
  +    logger.setLevel(log_level)
  +
  +    stream_handler = logging.StreamHandler(stream=sys.stdout)
  +    stream_handler.setLevel(log_level)
  +
  +    formatter = logging.Formatter("%(message)s")
  +
  +    stream_handler.setFormatter(formatter)
  +
  +    logger.addHandler(stream_handler)
  +    logger.propagate = False
   
   
   configure_logger(0)
  
verification_info: {"golden_diff": "diff --git a/hub/client/log.py b/hub/client/log.py\n--- a/hub/client/log.py\n+++ b/hub/client/log.py\n@@ -12,7 +12,17 @@\n \n def configure_logger(debug=0):\n     log_level = logging.DEBUG if debug == 1 else logging.INFO\n-    logging.basicConfig(format=\"%(message)s\", level=log_level, stream=sys.stdout)\n+    logger.setLevel(log_level)\n+\n+    stream_handler = logging.StreamHandler(stream=sys.stdout)\n+    stream_handler.setLevel(log_level)\n+\n+    formatter = logging.Formatter(\"%(message)s\")\n+\n+    stream_handler.setFormatter(formatter)\n+\n+    logger.addHandler(stream_handler)\n+    logger.propagate = False\n \n \n configure_logger(0)\n", "issue": "[FEATURE]Do not overwrite python logging configuration\n## \ud83d\udea8\ud83d\udea8 Feature Request\r\n\r\nBe able to use both `logging` and `hub` in the same python script\r\n\r\n### Current behavior\r\n\r\nI found the following code has undesired behavior: when adding the line `import hub`, the logging configuration will be overwritten.\r\n\r\n```python\r\nimport logging\r\nimport hub     # this will overwrite the logging config\r\n\r\nlogging.basicConfig(filename = \"sample.log\", level = logging.DEBUG,\r\n                    format = '%(asctime)s: %(filename)s: %(levelname)s: %(message)s')\r\n\r\nlogger = logging.getLogger(__name__)\r\n\r\nlogger.debug(\"this is a debug message\")\r\nlogger.info(\"this is an info message\")\r\nlogger.warning(\"this is a warning message\")\r\nlogger.error(\"this is an error message\")\r\n\r\n```\r\n\r\n\r\n\r\n\n", "before_files": [{"content": "\"\"\"\nLicense:\nThis Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.\nIf a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.\n\"\"\"\n\nimport logging\nimport sys\n\nlogger = logging.getLogger(\"hub\")\n\n\ndef configure_logger(debug=0):\n    log_level = logging.DEBUG if debug == 1 else logging.INFO\n    logging.basicConfig(format=\"%(message)s\", level=log_level, stream=sys.stdout)\n\n\nconfigure_logger(0)\n", "path": "hub/client/log.py"}]}