Skip to content

Commit

Permalink
Enable trace logging (#15)
Browse files Browse the repository at this point in the history
* Enable trace logging for some packages

* fix copy paste mistake
  • Loading branch information
alisihab committed Jul 26, 2024
1 parent 23989ed commit b968e55
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion charts/drill/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,34 @@ spec:
command:
- /bin/bash
- -c
- "${DRILL_HOME}/bin/drillbit.sh start && tail -f /var/lib/drill/log/drillbit.out"
- "echo '<configuration>
<appender name=\"FILE\" class=\"ch.qos.logback.core.rolling.RollingFileAppender\">
<file>/var/lib/drill/log/drill.log</file>
<rollingPolicy class=\"ch.qos.logback.core.rolling.FixedWindowRollingPolicy\">
<fileNamePattern>/var/lib/drill/log/drill.%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>9</maxIndex>
</rollingPolicy>
<triggeringPolicy class=\"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy\">
<maxFileSize>5MB</maxFileSize>
</triggeringPolicy>
<encoder>
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>
<root level=\"debug\">
<appender-ref ref=\"FILE\"/>
</root>
<logger name=\"org.apache.drill\" level=\"trace\"/>
<logger name=\"org.apache.calcite\" level=\"trace\"/>
<logger name=\"org.apache.zookeeper\" level=\"trace\"/>
</configuration>' > /opt/drill/conf/logback.xml &&
${DRILL_HOME}/bin/drillbit.sh start &&
tail -f /var/lib/drill/log/drillbit.out"
ports:
- containerPort: 8047
name: web
Expand Down

0 comments on commit b968e55

Please sign in to comment.