title: Swift: Silence Log
body: <p>In my code I'm checking a lot of time if an image/asset exists with:</p>
  
  <pre><code>if let myImage = UIImage(named: ext) {
        cell.mySymbol.image = myImage
  }
  </code></pre>
  
  <p>Every time I'm checking hundreds of strings. Every time an asset is not found, I'm getting this error in the log/debug area:</p>
  
  <pre><code>2018-06-30 21:24:17.989924+0200 myProject[2945:86150] [framework] CUICatalog: Invalid asset name supplied: ''
  </code></pre>
  
  <p>Those errors make it nearly impossible to debug the errors that are important for me.</p>
  
  <p><strong>Is there a way to either silence those logs/errors or is there another way of checking if an asset exists?</strong></p>