COR-283: Replaced the info message with a debug message with the stack trace or a warning message according to the log level