X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus_bar;h=e6fd1ffe2172abc9b5eef353a90b2964871d851b;hb=171acde37ae95b9a5a130f06efdb5037ad85ee7e;hp=6af6e352c7f0e1ef04d7fa557723333e1fac3135;hpb=e3f715dd971f608a41471534fd1ecd46a60b80a8;p=khatus.git diff --git a/bin/khatus_bar b/bin/khatus_bar index 6af6e35..e6fd1ff 100755 --- a/bin/khatus_bar +++ b/bin/khatus_bar @@ -100,7 +100,7 @@ function cache_gc( src_and_key, unused_for) { for (src_and_key in _cache) { unused_for = cache_get_time() - _cache_atime[src_and_key] if (unused_for > 3600) { - print_msg_error(\ + print_msg_info(\ "cache_gc", "Deleting unused src_and_key: " src_and_key \ ) delete _cache[src_and_key] @@ -323,6 +323,10 @@ function print_msg_ok(key, val) { print_msg("OK", key, val, "/dev/stdout") } +function print_msg_info(location, msg) { + print_msg("INFO", location, msg, "/dev/stderr") +} + function print_msg_error(location, msg) { print_msg("ERROR", location, msg, "/dev/stderr") }