Hi, guys,

I'm currently playing clojure with android monkey runner. So far it works
fine but just one unpleasant thing -- the android monkey runner default
prints a lot of junk information to stderr such as:

March 05, 2013 4:46:47 pm com.android.chimpchat.ChimpManager
sendMonkeyEventAndGetResponse

These printing operations are evaluated inside its library when I call a
method such as IChimpDevice.touch.

I'm writing some wrappers around the api:

(defn send-touch [^IChimpDevice device x y]
  (.touch device x y TouchPressType/DOWN_AND_UP))

Is it possible to suppress the its output to stderr and make it something
like(in pseudo code):
(with-stderr-discard
  (.touch device x y TouchPressType/DOWN_AND_UP))

I cannot discard the whole program's stderr output with commands like
java -jar xxxxxx.jar 2>/dev/null

since I need vital stack trace information from other places for debug
purpose.

Any help would be appreciated.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to