Skip to content

Commit

Permalink
cloudinit.log: Remove unused getLogger wrapper (#4435)
Browse files Browse the repository at this point in the history
This wrapper provided a default logger with name "cloudinit" when called
without arguments. This behavior was never used and can safely be removed.
  • Loading branch information
holmanb committed Sep 21, 2023
1 parent 0044c83 commit 40bfa35
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cloudinit/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ def setupLogging(cfg=None):
setupBasicLogging()


def getLogger(name="cloudinit"):
return logging.getLogger(name)


def _resetLogger(log):
"""Remove all current handlers, unset log level and add a NullHandler.
Expand All @@ -153,9 +149,6 @@ def _resetLogger(log):

def resetLogging():
_resetLogger(logging.getLogger())
_resetLogger(getLogger())


resetLogging()

# vi: ts=4 expandtab

0 comments on commit 40bfa35

Please sign in to comment.