[arch-projects] [netcfg] [PATCH 1/4] Include timestamp in DEBUG message
Jouke Witteveen
j.witteveen at gmail.com
Mon Jul 2 18:58:57 EDT 2012
On Mon, Jul 2, 2012 at 11:07 PM, Henrik Hallberg <henrik at k2h.se> wrote:
> ---
> src/globals | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/globals b/src/globals
> index af411fe..436334a 100644
> --- a/src/globals
> +++ b/src/globals
> @@ -28,7 +28,7 @@ function report_notice {
> }
>
> function report_debug {
> - checkyesno "$NETCFG_DEBUG" && echo "DEBUG: $*" >&2
> + checkyesno "$NETCFG_DEBUG" && echo "DEBUG $(date -Ins): $*" >&2
Isn't that a bit too verbose? What about:
echo "DEBUG ${SECONDS}s: $*"
> }
>
> function report_try {
> --
> 1.7.11.1
>
More information about the arch-projects
mailing list