mirror of
https://github.com/fluencelabs/fluid
synced 2025-04-24 22:32:16 +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 {
|
||||
if (username) {
|
||||
|
||||
let request =
|
||||
`SELECT json_group_array(
|
||||
json_object('message', message, 'username', username)
|
||||
|
@ -21,11 +21,12 @@ echo
|
||||
sleep 1 && (docker logs -f frun 2>&1 &) | grep -q initialized && sleep 1
|
||||
|
||||
# Send our username to the application
|
||||
echo -e "Sending request..."
|
||||
echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'$USER --compressed"
|
||||
REQUEST="$USER"
|
||||
echo -e "Sending request: $REQUEST"
|
||||
echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$REQUEST" --compressed"
|
||||
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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user