summaryrefslogtreecommitdiffstats
path: root/helper/logging.inc
diff options
context:
space:
mode:
authorJonathan Bauer2013-02-22 16:50:43 +0100
committerJonathan Bauer2013-02-22 16:50:43 +0100
commita81cc867c3a4a6453f76b075476c819c21e95da0 (patch)
tree582e6d0812b994e5f3f644fface4434d9008c1d3 /helper/logging.inc
parent 1. New logging/output system - use functions provided by helper/logging.inc (diff)
downloadtm-scripts-a81cc867c3a4a6453f76b075476c819c21e95da0.tar.gz
tm-scripts-a81cc867c3a4a6453f76b075476c819c21e95da0.tar.xz
tm-scripts-a81cc867c3a4a6453f76b075476c819c21e95da0.zip
logging debug extended
Diffstat (limited to 'helper/logging.inc')
-rw-r--r--helper/logging.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/helper/logging.inc b/helper/logging.inc
index 2667e5e5..7c8bc78c 100644
--- a/helper/logging.inc
+++ b/helper/logging.inc
@@ -26,14 +26,14 @@ pinfo () {
if [ "x$MLTK_QUIET" = "x1" ]; then
echo -e "\033[38;5;10m[info]\033[0m $TOOL_STR $@" >&6
else
- echo -e "\033[38;5;10m[info]\033[0m $TOOL_STR $@"
+ echo -e "\033[38;5;10m[info]\033[0m $TOOL_STR $@" >&2
fi
}
perror () {
if [ "x$MLTK_QUIET" = "x1" ]; then
echo -e "\033[38;5;9m[error]\033[0m $TOOL_STR $@" >&6
else
- echo -e "\033[38;5;9m[error]\033[0m $TOOL_STR $@"
+ echo -e "\033[38;5;9m[error]\033[0m $TOOL_STR $@" >&2
fi
qnd_exit
}
@@ -41,17 +41,17 @@ pwarning () {
if [ "x$MLTK_QUIET" = "x1" ]; then
echo -e "\033[38;5;11m[warning]\033[0m $TOOL_STR $@" >&6
else
- echo -e "\033[38;5;11m[warning]\033[0m $TOOL_STR $@"
+ echo -e "\033[38;5;11m[warning]\033[0m $TOOL_STR $@" >&2
fi
}
pdebug () {
if [ "x$DEBUG" != "x1" ]; then
- echo -e "[DEBUG] $TOOL_STR $@"
+ echo -e "[DEBUG] $TOOL_STR $@" >&2
elif [ "x$MLTK_QUIET" = "x1" ]; then
echo -e "\033[38;5;6m[debug]\033[0m $TOOL_STR $@" >&6
else
- echo -e "\033[38;5;6m[debug]\033[0m $TOOL_STR $@"
+ echo -e "\033[38;5;6m[debug]\033[0m $TOOL_STR $@" >&2
fi
}