Skip to content

Commit

Permalink
remove debug line
Browse files Browse the repository at this point in the history
  • Loading branch information
kizniche committed Oct 29, 2023
1 parent eb7a3a1 commit 2c7210b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mycodo/actions/input_action_execute_python_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from mycodo.utils.system_pi import assure_path_exists
from mycodo.utils.system_pi import set_user_grp


def generate_code(input_id, python_code):
error = []
pre_statement_run = """import os
Expand Down Expand Up @@ -106,7 +105,6 @@ def __init__(self, action_dev, testing=False):
self.try_initialize()

def initialize(self):
self.logger.info("Initializing")
action_python_code_run, file_run = generate_code(self.unique_id, self.python_code)

module_name = "mycodo.action.{}".format(os.path.basename(file_run).split('.')[0])
Expand All @@ -118,11 +116,11 @@ def initialize(self):
self.action_setup = True

def run_action(self, dict_vars):
self.logger.debug(f"pre dict_vars: {dict_vars}")
self.logger.debug(f"pre action run dict_vars: {dict_vars}")

dict_vars = self.run_python.python_code_run(dict_vars)

self.logger.debug(f"post dict_vars: {dict_vars}")
self.logger.debug(f"post action run dict_vars: {dict_vars}")

return dict_vars

Expand Down

0 comments on commit 2c7210b

Please sign in to comment.