Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/bootstrap: Add log message with version #2468

Merged
merged 2 commits into from Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions bootstrap/main.py
Expand Up @@ -9,7 +9,9 @@


if __name__ == "__main__":
version = os.environ.get("GIT_DESCRIBE_TAGS", None)
logger.add("/var/logs/blueos/services/bootstrap/bootstrap_{time}.log", enqueue=True, rotation="30 minutes")
logger.info(f"Running BlueOS Bootstrap {version}")
if os.environ.get("BLUEOS_CONFIG_PATH", None) is None:
logger.info("Please supply the host path for the config files as the BLUEOS_CONFIG_PATH environment variable.")
logger.info("Example docker command line:")
Expand Down
2 changes: 2 additions & 0 deletions core/start-blueos-core
Expand Up @@ -3,6 +3,8 @@
# Immediately exit on errors
set -e

echo "BlueOS ${GIT_DESCRIBE_TAGS}"

BLUEOS_PATH=/home/pi
SERVICES_PATH=$BLUEOS_PATH/services
TOOLS_PATH=$BLUEOS_PATH/tools
Expand Down