File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
tensorflow_serving/model_servers Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ cc_library(
96
96
"//tensorflow_serving/util:event_bus" ,
97
97
"//tensorflow_serving/util:unique_ptr_with_deps" ,
98
98
"@com_google_absl//absl/base:core_headers" ,
99
+ "@com_google_absl//absl/log" ,
99
100
"@com_google_absl//absl/status" ,
100
101
"@com_google_absl//absl/time" ,
101
102
"@com_google_absl//absl/types:optional" ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ limitations under the License.
25
25
#include " google/protobuf/any.pb.h"
26
26
#include " google/protobuf/wrappers.pb.h"
27
27
#include " google/protobuf/util/message_differencer.h"
28
+ #include " absl/log/log.h"
28
29
#include " tensorflow/core/lib/core/stringpiece.h"
29
30
#include " tensorflow/core/lib/io/path.h"
30
31
#include " tensorflow/core/lib/strings/strcat.h"
@@ -457,6 +458,10 @@ Status ServerCore::ReloadConfig(const ModelServerConfig& new_config) {
457
458
new_config.config_case () == ModelServerConfig::kModelConfigList ) ||
458
459
protobuf::util::MessageDifferencer::Equals (config_, new_config);
459
460
if (!accept_transition) {
461
+ LOG (ERROR) << " Cannot transition to requested config. It is only legal to "
462
+ " transition from one ModelConfigList to another." ;
463
+ LOG (ERROR) << " Old config: " << config_.DebugString ();
464
+ LOG (ERROR) << " New config: " << new_config.DebugString ();
460
465
return errors::FailedPrecondition (
461
466
" Cannot transition to requested config. It is only legal to transition "
462
467
" from one ModelConfigList to another." );
You can’t perform that action at this time.
0 commit comments