LPS-41315 Always check the appropriate loglevel when writing debug/info/warning message to the log.
LPS-40268 Copy from portal
LPS-40268