Skip to content

Commit

Permalink
chore: Use log level ERROR when logging backend errors with LOG_IF_ER…
Browse files Browse the repository at this point in the history
…ROR (#99)
  • Loading branch information
rmccorm4 authored Jun 6, 2024
1 parent b5dab15 commit 25c4193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
# Copyright 2020-2024, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -37,6 +37,7 @@ option(TRITON_ENABLE_STATS "Include statistics collections in backend utilities"
# Default OFF unless backend explicitly request to use provided implementation
option(TRITON_ENABLE_MEMORY_TRACKER "Include device memory tracker in backend utilities" OFF)

set(TRITON_REPO_ORGANIZATION "https://github.com/triton-inference-server" CACHE STRING "Git repository to pull from")
set(TRITON_COMMON_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/common repo")
set(TRITON_CORE_REPO_TAG "main" CACHE STRING "Tag for triton-inference-server/core repo")

Expand Down
4 changes: 2 additions & 2 deletions include/triton/backend/backend_common.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// Copyright 2020-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -63,7 +63,7 @@ namespace triton { namespace backend {
TRITONSERVER_Error* lie_err__ = (X); \
if (lie_err__ != nullptr) { \
IGNORE_ERROR(TRITONSERVER_LogMessage( \
TRITONSERVER_LOG_INFO, __FILE__, __LINE__, \
TRITONSERVER_LOG_ERROR, __FILE__, __LINE__, \
(std::string(MSG) + ": " + TRITONSERVER_ErrorCodeString(lie_err__) + \
" - " + TRITONSERVER_ErrorMessage(lie_err__)) \
.c_str())); \
Expand Down

0 comments on commit 25c4193

Please sign in to comment.