Add log message for system setting timeout and fix the long running query message format