Module Expr Str Import alias Import alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str Expr Call NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A N/A Logging utilities for Dulwich.

Any module that uses logging needs to do compile-time initialization to set up
the logging environment. Since Dulwich is also used as a library, clients may
not want to see any logging output. In that case, we need to use a special
handler to suppress spurious warnings like "No handlers could be found for
logger dulwich.foo".

For details on the _NullHandler approach, see:
http://docs.python.org/library/logging.html#configuring-logging-for-a-library

For many modules, the only function from the logging module they need is
getLogger; this module exports that function for convenience. If a calling
module needs something else, it can import the standard logging module directly.
 N/A logging N/A sys N/A getLogger N/A logging getLogger _NullHandler N/A N/A logging Handler N/A N/A No-op logging handler to avoid unexpected logging warnings. emit N/A N/A self record N/A N/A N/A N/A N/A N/A _NULL_HANDLER N/A _NullHandler N/A _DULWICH_LOGGER N/A getLogger dulwich N/A N/A N/A _DULWICH_LOGGER addHandler _NULL_HANDLER default_logging_config N/A N/A N/A N/A N/A Set up the default Dulwich loggers. N/A N/A remove_null_handler N/A N/A N/A logging basicConfig level N/A logging INFO stream N/A sys stderr format %(asctime)s %(levelname)s: %(message)s N/A remove_null_handler N/A N/A N/A N/A N/A Remove the null handler from the Dulwich loggers.

    If a caller wants to set up logging using something other than
    default_logging_config, calling this function first is a minor optimization
    to avoid the overhead of using the _NullHandler.
     N/A N/A N/A _DULWICH_LOGGER removeHandler _NULL_HANDLER N/A