Re: verbose logging with the docker executor

2016-03-19 Thread James Peach

> On Mar 17, 2016, at 10:09 AM, Clarke, Trevor  wrote:
> 
> Looking in the docker executor, the docker command line is logged with 
> VLOG(1) but I'm not sure how to generate that level of log output. Some 
> googling suggests it's used in the google logging library and verbose logging 
> would be enabled with something like --v=1 but that's not a valid mesos-slave 
> option. Can someone point me in the right direction? (currently using 0.24.1)

You can set the GLOG_v environment variable (see 
https://google-glog.googlecode.com/svn/trunk/doc/glog.html#verbose) to the 
desired verbosity level and then restart mesos-slave. If you just want to 
increase the log level without a restart, you can hit the /logging/toggle 
endpoint on the mesos-slave (do curl http://127.0.0.1:5051/help/logging/toggle 
for the online help).

J

RE: verbose logging with the docker executor

2016-03-19 Thread Clarke, Trevor
Thanks, worked great

--
Trevor R.H. Clarke
Software Engineer, Ball Aerospace
(937)320-7087


> -Original Message-
> From: James Peach [mailto:jor...@gmail.com]
> Sent: Thursday, March 17, 2016 1:15 PM
> To: user@mesos.apache.org
> Subject: Re: verbose logging with the docker executor
> 
> 
> > On Mar 17, 2016, at 10:09 AM, Clarke, Trevor  wrote:
> >
> > Looking in the docker executor, the docker command line is logged with
> VLOG(1) but I'm not sure how to generate that level of log output. Some
> googling suggests it's used in the google logging library and verbose logging
> would be enabled with something like --v=1 but that's not a valid mesos-
> slave option. Can someone point me in the right direction? (currently using
> 0.24.1)
> 
> You can set the GLOG_v environment variable (see
> https://urldefense.proofpoint.com/v2/url?u=https-3A__google-
> 2Dglog.googlecode.com_svn_trunk_doc_glog.html-
> 23verbose&d=CwIFAg&c=jF7FvYH6t0RX1HrEjVCgHQ&r=BZAdW7eZ7BA-
> TVm8CsncxQ&m=GbVjJL_4t0MuKdzzh2BCdn8URtcP4hm-
> SshI74wtR6s&s=Kth4DCGl6bGJ8qGlXTg_hNv4fE0R64-sHJ3neFQIWJs&e= ) to
> the desired verbosity level and then restart mesos-slave. If you just want to
> increase the log level without a restart, you can hit the /logging/toggle
> endpoint on the mesos-slave (do curl
> https://urldefense.proofpoint.com/v2/url?u=http-3A__127.0.0.1-
> 3A5051_help_logging_toggle&d=CwIFAg&c=jF7FvYH6t0RX1HrEjVCgHQ&r=BZ
> AdW7eZ7BA-TVm8CsncxQ&m=GbVjJL_4t0MuKdzzh2BCdn8URtcP4hm-
> SshI74wtR6s&s=X31FOtRYKF_aKYe7Msv_E3qMrBll1G8AE7opQn74oMg&e=
> for the online help).
> 
> J



This message and any enclosures are intended only for the addressee.  Please 
notify the sender by email if you are not the intended recipient.  If you are 
not the intended recipient, you may not use, copy, disclose, or distribute this 
message or its contents or enclosures to any other person and any such actions 
may be unlawful.  Ball reserves the right to monitor and review all messages 
and enclosures sent to or from this email address.