Put some log message before the return, otherwise this function will be completely silent in the log when called with priority < 0.