xojs / SublimeLinter-contrib-xo

SublimeLinter plugin for XO
https://github.com/xojs/xo
MIT License
55 stars 7 forks source link

Disable log output? #22

Closed IPWright83 closed 3 years ago

IPWright83 commented 3 years ago

I'm making an assumption here that this output is from this plugin - if it is, would it be possible to disable it? Or at least put it behind a debug flag etc?

XoFixCommand -> is_enabled?
XoFixCommand -> project_root -> None
XoFixCommand -> xo_start_dir /home/*********/.config/sublime-text-3/Packages/User
XoFixCommand -> xo_path None
XoFixCommand -> xo_path -> False
kaste commented 3 years ago

FWIW, the debugging here is made via plain print(), you could and should instead use

import logging
logger = logging.getLogger("SublimeLinter.plugin.xo")
....
# use it
logger.info("lirum")
logger.warn("larum")

This way it can be enabled/disabled with SublimeLinter's own debug switch.

sindresorhus commented 3 years ago

// @LuKks