Skip to content

Commit

Permalink
Add debug logging for Clickhouse connection status and fix indentatio…
Browse files Browse the repository at this point in the history
…n in nginx.yaml
  • Loading branch information
simlarsen committed Nov 21, 2024
1 parent 1fba734 commit 74e43f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Common/Server/Infrastructure/ClickhouseDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ export default class ClickhouseDatabase {
public async checkConnnectionStatus(): Promise<boolean> {
// Ping clickhouse to check if the connection is still alive
try {
logger.debug("Checking Clickhouse Connection Status - pinging clickhouse");
const result: PingResult | undefined = await this.getDataSource()?.ping();
logger.debug("Clickhouse Connection Status Result");
logger.debug(result);

if (!result) {
throw new DatabaseNotConnectedException(
Expand Down
2 changes: 1 addition & 1 deletion HelmChart/Public/oneuptime/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
containers:
- image: {{ printf "%s/%s/%s:%s" $.Values.image.registry $.Values.image.repository "nginx" $.Values.image.tag }}
name: {{ printf "%s-%s" $.Release.Name "nginx" }}
{{{- if $.Values.startupProbe.enabled }}
{{- if $.Values.startupProbe.enabled }}
# Startup probe
startupProbe:
httpGet:
Expand Down

0 comments on commit 74e43f0

Please sign in to comment.