Skip to content

Commit

Permalink
fix(metrics): include protocol in string
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Jul 31, 2024
1 parent 32a6780 commit 2f42f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
echo "Log file does not exist: $LOG_FILE"
# exit 1
fi
grep -E "^20[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]+[^,]+,UDP,echo$" $LOG_FILE
grep -E "^20[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]+[^,]+,echo:UDP,echo$" $LOG_FILE
- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def multi_threaded_client(message,address):
log_file = datetime.datetime.now().strftime("%Y-%m-%d") + '-udp-echo.log'
log_path = os.path.join(log_dir, log_file)
with open(log_path, 'a') as f:
f.write(f'{datetime.datetime.now()},UDP,echo\n')
f.write(f'{datetime.datetime.now()},echo:UDP,echo\n')

# Sending a reply to client
start_new_thread(multi_threaded_client, (message,address ))

0 comments on commit 2f42f73

Please sign in to comment.