appium/appium-uiauto — pull request #51 by imurchie (2014-09-15 22:48:53+00:00)
Title: Remove broken element logging

`UIAElement.logElement()`/`UIAElement.logElementTree()` (called by [`$(element).log()`](https://github.com/jaykz52/mechanic/blob/master/src/logging.js#L28)) consistently fails with the error

```shell
Instruments Trace Error : *** -[NSURL URLByAppendingPathComponent:]: component, components, or pathExtension cannot be nil.
```

followed by Instruments crashing. This happens when calling the function multiple times, often but seemingly at random.

The log lines in the xpath extension to Mechanic do not add much to the logs, as the calling function logs the results retrieved. Currently, we get

```shell
info: [debug] 
 2014-09-15 21:26:19 +0000 logElementTree:
UIAStaticText "© 2013 Josh Long" {{10, 653}, {103, 16}}
2014-09-15 21:26:19 +0000 Debug: evaluation finished
2014-09-15 21:26:19 +0000 Debug: Lookup returned [object UIAStaticText] with the name "© 2013 Josh Long" (id: 0).
```

and with this change we will get

```shell
info: [debug] 
 2014-09-15 21:27:24 +0000 Debug: evaluation finished
info: [debug] 
 2014-09-15 21:27:24 +0000 Debug: Lookup returned [object UIAStaticText] with the name "© 2013 Josh Long" (id: 0).
```

This should fix appium/appium#3154.