Skip to content

Commit

Permalink
Merge pull request #2 from CGranger-sorenson/r24.05
Browse files Browse the repository at this point in the history
R24.05
  • Loading branch information
CGranger-sorenson authored May 31, 2024
2 parents 2585eb9 + 9bcc804 commit 6a82918
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
26 changes: 22 additions & 4 deletions include/triton/core/tritonserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,31 @@ typedef enum TRITONSERVER_loglevel_enum {
TRITONSERVER_LOG_VERBOSE
} TRITONSERVER_LogLevel;

/// Logging Formats
///
/// Format of logging.
/// The TRITONSERVER API offers two logging formats. The formats have
/// a common set of fields but differ in how the timestamp for a log
/// entry is represented. Messages are serialized according to JSON
/// encoding rules by default. This behavior can be disabled by
/// setting the environment variable TRITON_SERVER_ESCAPE_LOG_MESSAGES
/// to "0".
///
/// TRITONSERVER_LOG_DEFAULT: the log severity (L) and timestamp will be
/// logged as "LMMDD hh:mm:ss.ssssss".
///
/// TRITONSERVER_LOG_ISO8601: the log format will be "YYYY-MM-DDThh:mm:ssZ L".
/// 1. TRITONSERVER_LOG_DEFAULT
///
/// <level><month><day><hour>:<min>:<sec>.<usec> <pid> <file>:<line>] <msg>
///
/// Example:
///
/// I0520 20:03:25.829575 3355 model_lifecycle.cc:441] "AsyncLoad() 'simple'"
///
/// 2. TRITONSERVER_LOG_ISO8601
///
/// <year>-<month>-<day>T<hour>:<min>:<sec>Z <level> <pid> <file>:<line>] <msg>
///
/// Example:
///
/// 2024-05-20T20:03:26Z I 3415 model_lifecycle.cc:441] "AsyncLoad() 'simple'"
///
typedef enum TRITONSERVER_logformat_enum {
TRITONSERVER_LOG_DEFAULT,
Expand Down
4 changes: 2 additions & 2 deletions src/model_config_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ GetNormalizedModelConfig(
// to auto-complete.
RETURN_IF_ERROR(
AutoCompleteBackendFields(model_name, std::string(path), config));
LOG_VERBOSE(1) << "Server side auto-completed config: "
<< config->DebugString();

LOG_PROTOBUF_VERBOSE(1, "Server side auto-completed config: ", (*config));

RETURN_IF_ERROR(NormalizeModelConfig(min_compute_capability, config));

Expand Down
11 changes: 5 additions & 6 deletions src/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,7 @@ InferenceServer::PrintBackendAndModelSummary()
repoagent_record.emplace_back(repoagent_pair.second);
repoagents_table.InsertRow(repoagent_record);
}
std::string repoagents_table_string = repoagents_table.PrintTable();
LOG_INFO << repoagents_table_string;
LOG_TABLE_INFO(repoagents_table);

// Backends Summary
std::vector<std::string> backend_headers;
Expand All @@ -630,8 +629,8 @@ InferenceServer::PrintBackendAndModelSummary()
}
backends_table.InsertRow(backend_record);
}
std::string backends_table_string = backends_table.PrintTable();
LOG_INFO << backends_table_string;

LOG_TABLE_INFO(backends_table);

// Models Summary
auto model_states = model_repository_manager_->ModelStates();
Expand Down Expand Up @@ -673,8 +672,8 @@ InferenceServer::PrintBackendAndModelSummary()
}
}
}
std::string models_table_string = models_table.PrintTable();
LOG_INFO << models_table_string;

LOG_TABLE_INFO(models_table);

return Status::Success;
}
Expand Down
3 changes: 1 addition & 2 deletions src/tritonserver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2554,8 +2554,7 @@ TRITONSERVER_ServerNew(
options_table.InsertRow(std::vector<std::string>{
"cache_enabled", std::to_string(lserver->ResponseCacheEnabled())});

std::string options_table_string = options_table.PrintTable();
LOG_INFO << options_table_string;
LOG_TABLE_INFO(options_table);

if (!status.IsOk()) {
if (loptions->ExitOnError()) {
Expand Down

0 comments on commit 6a82918

Please sign in to comment.