Right now, logging a warning is not skipped when the code is already the fallback code.
Skip logging warn message when the code is already fallback code.