Skip to content

Commit d797f8e

Browse files
remiamichdolan
andauthored
Log OCIO version for debugging purposes (#1694)
Signed-off-by: Rémi Achard <[email protected]> Signed-off-by: Rémi Achard <[email protected]> Co-authored-by: Michael Dolan <[email protected]>
1 parent 20805ae commit d797f8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/OpenColorIO/Logging.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ void InitLogging()
5353
{
5454
g_logginglevel = LOGGING_LEVEL_DEFAULT;
5555
}
56+
57+
if (g_logginglevel == LOGGING_LEVEL_DEBUG)
58+
{
59+
std::cerr << "[OpenColorIO Debug]: Using OpenColorIO version: "
60+
<< GetVersion() << "\n";
61+
}
5662
}
5763

5864
// That's the default logging function.

0 commit comments

Comments
 (0)