Skip to content
Snippets Groups Projects
Commit 486eb1dc authored by elijah's avatar elijah
Browse files

added value for loglevel

parent 900f2691
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ function printmsg() { ...@@ -81,7 +81,7 @@ function printmsg() {
echo -e "${color}$typestr: $@${endcolor}" >&2 echo -e "${color}$typestr: $@${endcolor}" >&2
fi fi
if [ "$print" -lt "$loglevel" ]; then if [ $print -lt $loglevel ]; then
if [ -w "$logfile" ]; then if [ -w "$logfile" ]; then
echo -e "${color}$typestr: $@${endcolor}" >> $logfile echo -e "${color}$typestr: $@${endcolor}" >> $logfile
fi fi
...@@ -293,6 +293,7 @@ function process_action() { ...@@ -293,6 +293,7 @@ function process_action() {
setupcolors setupcolors
conffile="/etc/backupninja.conf" conffile="/etc/backupninja.conf"
loglevel=3
## process command line options ## process command line options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment