Skip to content

Commit

Permalink
Move the gsheet logger to validator
Browse files Browse the repository at this point in the history
  • Loading branch information
khyatimahendru committed Jan 16, 2025
1 parent de9c42d commit 4ca7032
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions bin/stream_logs_to_gsheets.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
#!/bin/bash

UDMI_ROOT=$(realpath $(dirname $0)/..)
UDMIS_JAR=$UDMI_ROOT/udmis/build/libs/udmis-1.0-SNAPSHOT-all.jar



source $UDMI_ROOT/etc/shell_common.sh

if [[ ! -f "$UDMIS_JAR" ]]; then
$UDMI_ROOT/udmis/bin/build
fi
[[ ! -d $UDMI_ROOT/validator/src ]] ||
up_to_date $UDMI_JAR $UDMI_ROOT/validator/src ||
$UDMI_ROOT/validator/bin/build

JAVA_CLASS=com.google.udmi.util.GSheetsOutputStream

timestamp=$(date +%Y%m%d_%H%M%S)
stream_to_gsheets() {
java -cp $UDMIS_JAR $JAVA_CLASS "registrar" \
java -cp $UDMI_JAR $JAVA_CLASS "registrar" \
"12leoCVQpdXx6MdKlVCCI4O1mi35dOTw_FxDMBetuwXQ" "registrar.$timestamp.log"
}

1 change: 0 additions & 1 deletion etc/shell_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ function pubber_bg {
UDMI_ROOT=$(realpath $UDMI_ROOT)

UDMI_JAR=$UDMI_ROOT/validator/build/libs/validator-1.0-SNAPSHOT-all.jar
UDMIS_JAR=$UDMI_ROOT/udmis/build/libs/udmis-1.0-SNAPSHOT-all.jar

VERSION_BASE='1.*'

Expand Down

0 comments on commit 4ca7032

Please sign in to comment.