Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: common.sh

Issue 6597053: Add optional logging prefix to info, warn and error messages. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common.sh
diff --git a/common.sh b/common.sh
index 1d25074316d2a336046e3a5311cc1d6de5b02a37..cc9c01279623a03e0b31c7ee6375251f256ec11a 100644
--- a/common.sh
+++ b/common.sh
@@ -383,15 +383,15 @@ V_BOLD_RED="\e[1;31m"
V_BOLD_YELLOW="\e[1;33m"
function info {
- echo -e >&2 "${V_BOLD_GREEN}INFO : $1${V_VIDOFF}"
+ echo -e >&2 "${V_BOLD_GREEN}INFO ${CROS_LOG_PREFIX}: $1${V_VIDOFF}"
}
function warn {
- echo -e >&2 "${V_BOLD_YELLOW}WARNING: $1${V_VIDOFF}"
+ echo -e >&2 "${V_BOLD_YELLOW}WARNING ${CROS_LOG_PREFIX}: $1${V_VIDOFF}"
}
function error {
- echo -e >&2 "${V_BOLD_RED}ERROR : $1${V_VIDOFF}"
+ echo -e >&2 "${V_BOLD_RED}ERROR ${CROS_LOG_PREFIX}: $1${V_VIDOFF}"
}
function die {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698