Skip to content

Commit

Permalink
Fix logging not working on manage_actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
suntzu93 committed Nov 13, 2022
1 parent 6ce6351 commit aa8ccdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import subprocess
import config
import threading
import request_actions

Expand All @@ -9,6 +8,5 @@
thread_start_request_actions = threading.Thread(target=request_actions.start_request_actions, args=())
thread_start_request_actions.start()

cmd_start_manage_agent_action = f"flask --app manage_actions.py run --host {config.host} --port {config.port}"
process = subprocess.run([cmd_start_manage_agent_action], shell=True, check=True, stdout=subprocess.PIPE,
universal_newlines=True)
cmd_start_manage_agent_action = f"python3 manage_actions.py"
subprocess.run([cmd_start_manage_agent_action], shell=True, check=True)
4 changes: 4 additions & 0 deletions manage_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,3 +377,7 @@ def verify():
print(e)
logging.error("verify: " + str(e))
return "ERROR"


if __name__ == '__main__':
app.run(host=config.host, port=config.port, debug=True)

0 comments on commit aa8ccdd

Please sign in to comment.