Fix the terminal-log loop that prevented catlog from being used from REST (OMS-149)