add message at start of program

Version updated
This commit is contained in:
2023-11-29 16:18:56 +00:00
parent c10001754f
commit 3fbe3fb025
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ export const getAddress = async (params) => {
return returnOnError(ret, 'RESPSTATUS', getAddress.name, response.status)
}
let akt = response.data.address
logit(JSON.stringify(akt))
// logit(JSON.stringify(akt))
const CITY = ['city', 'town', 'village', 'suburb', 'county']
let city = "unknown"
for (let c of CITY) {
+5
View File
@@ -6,6 +6,9 @@ import cors from 'cors'
import i18next from 'i18next'
import i18nextMiddleware from 'i18next-http-middleware'
import Backend from 'i18next-node-fs-backend'
import {logit} from "./utilities/logit.js"
import pkg from './package.json' assert { type: "json" }
const app = express()
@@ -58,4 +61,6 @@ app.use(function(err, req, res, next) {
res.send(`ERROR: ${err.status}, ${err.stack}`)
})
logit(`Start of Program Version: ${pkg.version} vom ${pkg.date}`)
export default app
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "sensorapi",
"version": "1.3.0",
"date": "2023-05-09",
"version": "1.4.1",
"date": "2023-11-29 16:00 UTC",
"private": true,
"scripts": {
"start": "node ./bin/www.js >>/var/log/sensorapi.log 2>&1",