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