mirror of
https://github.com/fluencelabs/fluid
synced 2025-04-25 14:52:19 +00:00
Better logging
This commit is contained in:
parent
d5b24bfdad
commit
13b6912b65
@ -12,7 +12,6 @@ export function addMessage(message: string, username: string): void {
|
|||||||
|
|
||||||
export function getMessages(username: string | null): string {
|
export function getMessages(username: string | null): string {
|
||||||
if (username) {
|
if (username) {
|
||||||
|
|
||||||
let request =
|
let request =
|
||||||
`SELECT json_group_array(
|
`SELECT json_group_array(
|
||||||
json_object('message', message, 'username', username)
|
json_object('message', message, 'username', username)
|
||||||
|
@ -21,11 +21,12 @@ echo
|
|||||||
sleep 1 && (docker logs -f frun 2>&1 &) | grep -q initialized && sleep 1
|
sleep 1 && (docker logs -f frun 2>&1 &) | grep -q initialized && sleep 1
|
||||||
|
|
||||||
# Send our username to the application
|
# Send our username to the application
|
||||||
echo -e "Sending request..."
|
REQUEST="$USER"
|
||||||
echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'$USER --compressed"
|
echo -e "Sending request: $REQUEST"
|
||||||
|
echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$REQUEST" --compressed"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
RESPONSE=$(curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$USER" --compressed | jq -r .result.data | base64 -D)
|
RESPONSE=$(curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$REQUEST" --compressed | jq -r .result.data | base64 -D)
|
||||||
|
|
||||||
echo -e "$RESPONSE\n"
|
echo -e "$RESPONSE\n"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user