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