Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Output package version
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturner committed Sep 9, 2023
1 parent cd7d6c7 commit 443fa91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/smarthome-lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ const Logger = require('@matthewturner/smartheat-core/core/Logger');
const HandlerRegistry = require('./HandlerRegistry');

const logger = new Logger(process.env.LOG_LEVEL || Logger.DEBUG);
import { version } from './package.json';
const { version } = require('./package.json');

exports.handler = async (ev, context) => {
logger.level = process.env.LOG_LEVEL || Logger.DEBUG;

logger.debug(`SmartHome Version: ${version}`);

logEntry(ev, context);
const event = extractEvent(ev);

Expand Down

0 comments on commit 443fa91

Please sign in to comment.