Closed chunderstruck closed 6 years ago
This is great! Can you make so that it prints and logs each thing? What's the easiest way to do that? Maybe an output function that takes text to both? Maybe something like that exists already... idk but this looks good
Let me clarify. I want some provide some sort of terminal feedback that the automation tool shows the user as the return feedback. If everything goes to the logs then there is no feedback going back through stdin that the automation tool can provide back to the users
echo "Getting Python dependencies" -pip install boto3 +pip install -r requirements.txt
This should install all dependencies not just boto3. Moved boto3 into requirements.txt so if desired later we can move the requirements into the build script.
Yeah, that makes sense
Working on using a different configuration file format that may allow for more functionality... stand by...
Currently only logging items in rc.py, logging levels can be modified in the configuration file so not logging every single action to the logfile or console. By setting default logging levels to INFO, where as the current level for everything is DEBUG.
Example of the output from log files.
This looks good. Merging
Added logging functionality, by default logs to /var/log/ccfvm.log May need additional verification to make sure that we are getting proper console logging. Not sure if that is going to matter in the long run but may be an issue while in development.
Can monitor logs while testing:
tail -f /var/log/ccfvm.log
Added to automation.sh logging configuration file, this can be used in any other module that may need logging support. (GRPC?)