hypha: add script for quick debugging and set log levels ot warn by default

This commit is contained in:
Alex Zenla
2024-02-01 10:28:17 +00:00
parent bd56de235f
commit e7cea3d7ed
4 changed files with 18 additions and 2 deletions

13
scripts/hyphactl-debug.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
if [ -z "${RUST_LOG}" ]
then
RUST_LOG="INFO"
fi
cd "$(dirname "${0}")/.."
./initrd/build.sh
sudo cp "target/initrd/initrd" "/var/lib/hypha/default/initrd"
cargo build --target x86_64-unknown-linux-gnu --bin hyphactl
exec sudo RUST_LOG="${RUST_LOG}" target/x86_64-unknown-linux-gnu/debug/hyphactl "${@}"