diff --git a/socs/agents/lakeshore240/agent.py b/socs/agents/lakeshore240/agent.py index a3aa60d70..97be5360f 100644 --- a/socs/agents/lakeshore240/agent.py +++ b/socs/agents/lakeshore240/agent.py @@ -17,7 +17,9 @@ txaio.use_twisted() -log = txaio.make_logger() # pylint: disable=E1101 +on_rtd = os.environ.get("READTHEDOCS") == "True" +if not on_rtd: + log = txaio.make_logger() # pylint: disable=E1101 class LS240Action(BaseAction):