Skip to content

Commit 2397444

Browse files
authored
feat: Add debug logs (#166)
* feat: Add debug logs * feat: Add file and func name in logs * fix: Remove funcname
1 parent d82c2dc commit 2397444

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

tools/qdrant_collect_stats.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

3-
set -e
3+
PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE '
4+
set -euo pipefail
45

56
# Examples: qdrant-single-node, qdrant-single-node-rps
67
CONTAINER_NAME=$1

tools/run_ci.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/bin/bash
22

3-
set -e
3+
PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE '
4+
set -euo pipefail
45

56
function handle_err() {
6-
echo "Error occured ${QDRANT_VERSION@A} ${ENGINE_NAME@A} ${DATASETS@A}"
7+
echo "Error occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
78
echo "{failed}={error}" >> $GITHUB_OUTPUT
89
}
910

1011
function handle_term() {
11-
echo "Timeout occured ${QDRANT_VERSION@A} ${ENGINE_NAME@A} ${DATASETS@A}"
12+
echo "Timeout occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
1213
echo "{failed}={timeout}" >> $GITHUB_OUTPUT
1314
}
1415

tools/run_client_script.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

3-
set -e
3+
PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE '
4+
set -euo pipefail
45

56
CLOUD_NAME=${CLOUD_NAME:-"hetzner"}
67
SERVER_USERNAME=${SERVER_USERNAME:-"root"}

tools/run_experiment.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

3-
set -e
3+
PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE '
4+
set -euo pipefail
45

56
ENGINE_NAME=${ENGINE_NAME:-"qdrant-continuous-benchmark"}
67

tools/run_remote_benchmark.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/bash
22

3-
set -e
3+
PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE '
4+
set -euo pipefail
45

56
# Setup 2 machines in Hetzner Cloud
67
# One machine will be used as a server, another one as a client
78

89
cleanup() {
9-
echo "cleaning up..."
10+
echo "cleaning up file=$BASH_SOURCE"
1011
# bash -x "${SCRIPT_PATH}/tear_down.sh"
1112
}
1213

tools/run_server_container.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

3-
set -e
3+
PS4='ts=$(date "+%Y-%m-%dT%H:%M:%SZ") level=DEBUG line=$LINENO file=$BASH_SOURCE '
4+
set -euo pipefail
45

56
# Examples: qdrant-continuous-benchmarks
67
CONTAINER_NAME=$1

0 commit comments

Comments
 (0)