home
/
code
/
khatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3f715d
)
Mark GC messages as INFO rather than ERROR
author
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 17 Aug 2018 03:39:09 +0000
(23:39 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 17 Aug 2018 03:39:09 +0000
(23:39 -0400)
bin/khatus_bar
patch
|
blob
|
blame
|
history
diff --git
a/bin/khatus_bar
b/bin/khatus_bar
index
6af6e35
..
e6fd1ff
100755
(executable)
--- 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) {
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]
"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")
}
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")
}
function print_msg_error(location, msg) {
print_msg("ERROR", location, msg, "/dev/stderr")
}
This page took
0.021587 seconds
and
4
git commands to generate.