PermafrostDiscoveryGateway / viz-points

Python package for post-processing point-cloud data for 3D visualization
Apache License 2.0
0 stars 1 forks source link

Conditionally add StreamHandler to logging #20

Closed iannesbitt closed 1 year ago

iannesbitt commented 1 year ago
          You are setting up both a console and a file logger, but the `console` parameter is not used. If you intend to have an option to switch off console logging, you should use this parameter to conditionally add the StreamHandler.
    if console:
        sh = logging.StreamHandler(sys.stdout)
        sh.setFormatter(formatter)
        L.addHandler(sh)

_Originally posted by @robyngit in https://github.com/PermafrostDiscoveryGateway/viz-points/pull/12#discussion_r1195526032_