Skip to content

Commit

Permalink
Merge branch 'add-logging' of github.com:uwcirg/shl-ltt-server into a…
Browse files Browse the repository at this point in the history
…dd-logging
  • Loading branch information
daniellrgn committed Jan 31, 2025
2 parents 43f664e + a6b3335 commit b9cf392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/routers/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function applyLogFallbacks(logMessage: types.LogMessageSimple, defaults: Partial

function log(context: oak.Context, msg: types.LogMessageSimple, shl?: types.HealthLink) {
let logMessage: types.LogMessage = {
version: "2",
version: "3.0",
severity: "info",
action: msg.action,
occurred: new Date().toISOString(),
Expand Down
1 change: 1 addition & 0 deletions server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const { Application, Router } = oak;
const { oakCors } = cors;

const app = new Application({ logErrors: false });
app.proxy = true;
app.use(oakCors());

const appRouter = new Router()
Expand Down

0 comments on commit b9cf392

Please sign in to comment.