Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 36713 Details for
Bug 11359
[NEW FEATURE] pkg_postinst/pkg_preinst ewarn/einfo logging
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Ebuild einfo/ewarn/eerror sent to syslog
elog.patch (text/plain), 1.17 KB, created by
Kevin Quick
on 2004-08-03 14:58:44 UTC
(
hide
)
Description:
Ebuild einfo/ewarn/eerror sent to syslog
Filename:
MIME Type:
Creator:
Kevin Quick
Created:
2004-08-03 14:58:44 UTC
Size:
1.17 KB
patch
obsolete
>--- /etc/init.d/orig-functions.sh 2004-08-03 10:17:12.000000000 -0700 >+++ /etc/init.d/functions.sh 2004-08-03 14:02:52.000000000 -0700 >@@ -343,6 +343,23 @@ esyslog() { > return 0 > } > >+# void elog(char *type, char *message) >+# >+# called from einfo/ewarn/eerror to log output IF INVOKED FROM AN EBUILD >+# >+elog() { >+ [ "X$EBUILD_PHASE" == "X" ] && return 0 >+ [ -x /usr/bin/logger ] || return 0 >+ >+ LTYPE=${1:-debug} >+ shift 1 >+ tag=ebuild >+ intro="${EBUILD_PHASE:-??}.${LTYPE} (${CATEGORY}/${PF}) " >+ /usr/bin/logger -p "user.${LTYPE}" -t "${tag}" -- "${intro}$@" >+ return 0 >+} >+ >+ > # void einfo(char* message) > # > # show an informative message (with a newline) >@@ -353,6 +370,8 @@ einfo() { > echo -e " ${GOOD}*${NORMAL} ${*}" > fi > >+ elog info "$@" >+ > return 0 > } > >@@ -366,6 +385,8 @@ einfon() { > echo -ne " ${GOOD}*${NORMAL} ${*}" > fi > >+ elog info "$@" >+ > return 0 > } > >@@ -384,6 +405,8 @@ ewarn() { > # Log warnings to system log > esyslog "daemon.warning" "rc-scripts" "${*}" > >+ elog warning "$@" >+ > return 0 > } > >@@ -402,6 +425,8 @@ eerror() { > # Log errors to system log > esyslog "daemon.err" "rc-scripts" "${*}" > >+ elog err "$@" >+ > return 0 > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11359
:
6039
|
6046
|
16300
|
16341
|
25855
|
27224
|
27382
| 36713 |
36784
|
43541
|
65206