[Dbconfig-common-changes] [dbconfig-common] r428 - in trunk: debian internal
Sean Finney
seanius at alioth.debian.org
Thu Mar 27 21:58:01 UTC 2008
tags 472993 pending
thanks
Author: seanius
Date: 2008-03-27 21:58:01 +0000 (Thu, 27 Mar 2008)
New Revision: 428
Modified:
trunk/debian/changelog
trunk/internal/common
Log:
dbc_logfoo fixes and centralize dbc logfile location
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2008-03-06 23:18:05 UTC (rev 427)
+++ trunk/debian/changelog 2008-03-27 21:58:01 UTC (rev 428)
@@ -1,8 +1,11 @@
dbconfig-common (1.8.38) UNRELEASED; urgency=low
* NOT RELEASED YET
+ * more bugs/fixes from Niko Tyni (thanks!)
+ - fix for malformed log messages (closes: #472993).
+ * centralize definition of dbc.log location
- -- sean finney <seanius at debian.org> Fri, 07 Mar 2008 00:18:19 +0100
+ -- Sean Finney <seanius at debian.org> Thu, 27 Mar 2008 22:58:26 +0100
dbconfig-common (1.8.37) unstable; urgency=low
Modified: trunk/internal/common
===================================================================
--- trunk/internal/common 2008-03-06 23:18:05 UTC (rev 427)
+++ trunk/internal/common 2008-03-27 21:58:01 UTC (rev 428)
@@ -5,20 +5,22 @@
### "_dbc_foo", depending on whether or not they are "external"
###
+[ "$_dbc_logfile" ] || _dbc_logfile="/var/log/dbconfig-common/dbc.log"
+
##
## dbc_logpart: log interal messages (without newline)
##
dbc_logpart(){
- printf "$@ " >&2
- printf "$@ " >> /var/log/dbconfig-common/dbc.log
+ printf "$* " >&2
+ printf "$* " >> $_dbc_logfile
}
##
## dbc_logline: log interal messages
##
dbc_logline(){
- printf "$@.\n" >&2
- printf "$@.\n" >> /var/log/dbconfig-common/dbc.log
+ printf "$*.\n" >&2
+ printf "$*.\n" >> $_dbc_logfile
}
###
@@ -26,7 +28,7 @@
###
_dbc_debug(){
if [ "$dbc_debug" ]; then
- dbc_logline $@
+ dbc_logline "$@"
fi
}
More information about the Dbconfig-common-changes
mailing list