Skip to content

Commit

Permalink
Added user-agent to debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
aegrumet committed Jan 7, 2024
1 parent 3590ed3 commit 10ec54f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import websocket from "./websocket-routes.ts";
import rest from "./rest-routes.ts";
import restServer from "./rest-routes-server.ts";
import { UmbilicalEnv } from "./src/interfaces/umbilical-context.ts";
import { umbilicalUserAgent } from "./src/config.ts";

const app = new Hono();

Expand All @@ -18,6 +19,7 @@ Deno.serve((r) => {
});

if (env.DEBUG) {
console.log(`Umbilical User-Agent: ${umbilicalUserAgent}`);
// Log the run duration for this process.
const startTime = new Date();
setInterval(() => {
Expand Down

0 comments on commit 10ec54f

Please sign in to comment.