Skip to content

Commit

Permalink
feat: fix openim logs and ci (#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
cubxxw committed Jan 26, 2024
1 parent d356f7a commit 9527278
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ jobs:
echo "Run unit test and get test coverage successfully"
continue-on-error: true

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- name: OpenIM verify copyright
run: |
sudo make verify-copyright
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sync-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# you may not use this file except in compliance with the License.

# https://github.com/BetaHuhn/repo-file-sync-action
name: Synchronize kubecub public code to other repositories
name: Synchronize OpenIM Release Branch Public Code To Other Repositories
on:
push:
paths:
Expand Down Expand Up @@ -41,3 +41,4 @@ jobs:
automerge
ASSIGNEES: |
kubbot
continue-on-error: true
5 changes: 3 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# you may not use this file except in compliance with the License.

# https://github.com/BetaHuhn/repo-file-sync-action
name: Synchronize kubecub public code to other repositories
name: Synchronize OpenIM Main Branch Public Code To Other Repositories
on:
push:
branches:
Expand Down Expand Up @@ -36,4 +36,5 @@ jobs:
file-sync
automerge
ASSIGNEES: |
kubbot
kubbot
continue-on-error: true
4 changes: 2 additions & 2 deletions scripts/lib/logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ openim::log::error_exit() {

# Log an error but keep going. Don't dump the stack or exit.
openim::log::error() {
timestamp=$(date +"[%m%d %H:%M:%S]")
timestamp=$(date +"[%Y-%m-%d %H:%M:%S %Z]")
echo_log "!!! ${timestamp} ${1-}" >&2
shift
for message; do
Expand Down Expand Up @@ -192,7 +192,7 @@ openim::log::status() {
return
fi

timestamp=$(date +"[%m%d %H:%M:%S]")
timestamp=$(date +"[%Y-%m-%d %H:%M:%S %Z]")
echo_log "+++ ${timestamp} ${1}"
shift
for message; do
Expand Down

0 comments on commit 9527278

Please sign in to comment.