From f31fb292314b83fc91e9348782e7286c908ccdec Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 26 Apr 2019 15:06:57 +0200 Subject: [PATCH] start_px4_sitl.sh: print log path --- start_px4_sitl.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start_px4_sitl.sh b/start_px4_sitl.sh index 9d6c7a7ae6..a107e7a1ea 100755 --- a/start_px4_sitl.sh +++ b/start_px4_sitl.sh @@ -50,6 +50,10 @@ else timestamp=`date +%Y-%m-%dT%H:%M:%S%z` fi +logfile_path=$log_dir/px4_sitl-$timestamp.log + +echo "PX4 SITL log: '$logfile_path'" + # Before changing dir, save where we start from. pushd . @@ -63,7 +67,7 @@ $px4_firmware_dir/Tools/sitl_run.sh \ gazebo \ $sitl_model \ $px4_firmware_dir \ - $px4_firmware_dir/build/px4_sitl_default 2>1 > $log_dir/px4_sitl-$timestamp.log & + $px4_firmware_dir/build/px4_sitl_default 2>1 > $logfile_path & # Go back to dir where we started popd