> On Jan. 27, 2016, 10:41 a.m., Bill Farner wrote:
> > src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java, lines 
> > 118-119
> > <https://reviews.apache.org/r/42845/diff/1/?file=1222489#file1222489line118>
> >
> >     Please change this to explain that level 4 indicates intent to use 
> > slf4j, and change the link to
> >     http://www.h2database.com/html/features.html#other_logging

Done.


> On Jan. 27, 2016, 10:41 a.m., Bill Farner wrote:
> > src/main/resources/logback.xml, line 21
> > <https://reviews.apache.org/r/42845/diff/1/?file=1222490#file1222490line21>
> >
> >     This is really convenient!  For those curious, it generates this 
> > output, essentially echoing the configuration:
> >     ```
> >     18:36:36,988 |-INFO in ch.qos.logback.classic.LoggerContext[default] - 
> > Found resource [logback.xml] at 
> > [jar:file:/home/vagrant/aurora/dist/install/aurora-scheduler/lib/aurora-0.12
> >     .0-SNAPSHOT.jar!/logback.xml]
> >     18:36:37,074 |-INFO in 
> > ch.qos.logback.core.joran.spi.ConfigurationWatchList@25af5db5 - URL 
> > [jar:file:/home/vagrant/aurora/dist/install/aurora-scheduler/lib/aurora-0.12.0-SNAPSHOT.
> >     jar!/logback.xml] is not of type file
> >     18:36:37,356 |-INFO in ch.qos.logback.core.joran.action.AppenderAction 
> > - About to instantiate appender of type 
> > [ch.qos.logback.core.ConsoleAppender]
> >     18:36:37,366 |-INFO in ch.qos.logback.core.joran.action.AppenderAction 
> > - Naming appender as [STDERR]
> >     18:36:37,508 |-INFO in 
> > ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default 
> > type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] 
> > propert
> >     y
> >     18:36:37,665 |-INFO in 
> > ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of 
> > ROOT logger to INFO
> >     18:36:37,669 |-INFO in 
> > ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender 
> > named [STDERR] to Logger[ROOT]
> >     18:36:37,672 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction 
> > - Setting level of logger [h2database] to INFO
> >     18:36:37,672 |-INFO in 
> > ch.qos.logback.classic.joran.action.ConfigurationAction - End of 
> > configuration.
> >     ```

Normally this output is only there if there is something to warn us about (ie 
more than one logback.xml file), however it is also good at confirming the 
logging configuration. Putting it at the top of log output ensures operators 
can confirm logging is configured as desired.


> On Jan. 27, 2016, 10:41 a.m., Bill Farner wrote:
> > src/main/resources/logback.xml, line 32
> > <https://reviews.apache.org/r/42845/diff/1/?file=1222490#file1222490line32>
> >
> >     I believe you can omit this line, as it will inherit the root logger's 
> > appenders.

Done.


- Zameer


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42845/#review116604
-----------------------------------------------------------


On Jan. 26, 2016, 9:37 p.m., Zameer Manji wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42845/
> -----------------------------------------------------------
> 
> (Updated Jan. 26, 2016, 9:37 p.m.)
> 
> 
> Review request for Aurora, Maxim Khutornenko and Bill Farner.
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> On a test cluster with DbTaskStore enabled there are several lines in the log 
> that look like:
> ````
> 2016-01-26 13:07:14 jdbc[15]: exception
> ````
> There is no other information with these lines. This is a result of setting 
> `TRACE_LEVEL_SYSTEM_OUT` to `1` for H2. This will print out the error message 
> but not the associated throwable: 
> https://github.com/h2database/h2database/blob/a932268843ac84c7a665e427167ff2eb291d6b8e/h2/src/main/org/h2/message/TraceSystem.java#L228
> 
> The SLF4J implementation of tracing in H2 does not suffer from this 
> restriction.
> 
> 
> Diffs
> -----
> 
>   src/main/java/org/apache/aurora/scheduler/storage/db/DbModule.java 
> 36c462ac86cc605bd86bfc31c2f962a315099a02 
>   src/main/resources/logback.xml faf0dbc94dea536a944be18810a7f330d4c94dee 
> 
> Diff: https://reviews.apache.org/r/42845/diff/
> 
> 
> Testing
> -------
> 
> Set the level to debug initially and observed extra output in Vagrant.
> 
> 
> Thanks,
> 
> Zameer Manji
> 
>

Reply via email to