Skip to content

Commit 3906402

Browse files
Change logging behavior to VLOG so that downstream clients using this library don't get INFO log spew.
PiperOrigin-RevId: 206821092
1 parent d80434c commit 3906402

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tensorflow_serving/core/static_source_router.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ int StaticSourceRouter<T>::Route(const StringPiece servable_name,
8282
const std::vector<ServableData<T>>& versions) {
8383
for (int i = 0; i < routes_except_default_.size(); ++i) {
8484
if (str_util::StrContains(servable_name, routes_except_default_[i])) {
85-
LOG(INFO) << "Routing servable(s) from stream " << servable_name
86-
<< " to route " << i;
85+
VLOG(2) << "Routing servable(s) from stream " << servable_name
86+
<< " to route " << i;
8787
return i;
8888
}
8989
}
9090
// None of the substrings matched, so return the "default" Nth route.
91-
LOG(INFO) << "Routing servable(s) from stream " << servable_name
92-
<< " to default route " << routes_except_default_.size();
91+
VLOG(2) << "Routing servable(s) from stream " << servable_name
92+
<< " to default route " << routes_except_default_.size();
9393
return routes_except_default_.size();
9494
}
9595

0 commit comments

Comments
 (0)