Skip to content

Commit 1e4d8d6

Browse files
authored
Merge pull request #1813 from larsewi/logging
build-scripts/functions: added logging functions
2 parents cc7fb15 + d805f42 commit 1e4d8d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build-scripts/functions

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,4 +617,14 @@ run_and_print_on_failure()
617617
return $exit_code
618618
}
619619

620+
log_debug()
621+
{
622+
echo "$(basename "$0"): Debug:" "$@"
623+
}
624+
625+
log_error()
626+
{
627+
echo "$(basename "$0"): Error:" "$@" >&2
628+
}
629+
620630
_IS_FUNCTIONS_SOURCED=yes

0 commit comments

Comments
 (0)