Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Disable logging to file? #12

Open
tijlk opened this issue Aug 29, 2018 · 1 comment
Open

Disable logging to file? #12

tijlk opened this issue Aug 29, 2018 · 1 comment

Comments

@tijlk
Copy link

tijlk commented Aug 29, 2018

In kernelextension.py and serverextension.py there are references to the sparkmonitor_kernelextension.log and sparkmonitor_serverextension.log files being created and logged to. It specifically mentions that it is for debugging the module. Can we get rid of the debug mode? These log files are cluttering all my folders... :P

    fh = logging.FileHandler("sparkmonitor_serverextension.log", mode="w")
    fh.setLevel(logging.DEBUG)
    formatter = logging.Formatter(
        "%(levelname)s:  %(asctime)s - %(name)s - %(process)d - %(processName)s - \
        %(thread)d - %(threadName)s\n %(message)s \n")
    fh.setFormatter(formatter)
    logger.addHandler(fh) ## Comment this line to disable logging to a file.```
@krishnan-r
Copy link
Owner

Sorry for the delay. Will fix this in the next version. (Also planning on a major rewrite.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants