1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-25 02:04:15 +02:00

improving default value management

This commit is contained in:
Patrik J. Braun 2020-02-08 12:12:20 +01:00
parent bcfd419908
commit 58aa4a720d
3 changed files with 8 additions and 5 deletions

6
package-lock.json generated
View File

@ -18721,9 +18721,9 @@
}
},
"typeconfig": {
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.8.tgz",
"integrity": "sha512-D2Qfq1Ub6aZ/P24VGiyufuepClsHt9doe7xPf2YbmEOUtJRGgyQSDNamQp6wFuTfFKjpQIqi+6moQelkPI9BwQ==",
"version": "2.0.9",
"resolved": "https://registry.npmjs.org/typeconfig/-/typeconfig-2.0.9.tgz",
"integrity": "sha512-ORNNNaYqPpPzxMJLTTQ1okjtp120BPUmBFxFN6gE/a4KzmeT8VcBd7ptFxv+/FsnnOogzd4uGg5jaGF+SWG4hQ==",
"requires": {
"optimist": "0.6.1"
}

View File

@ -48,7 +48,7 @@
"sqlite3": "4.1.1",
"ts-exif-parser": "0.1.4",
"ts-node-iptc": "1.0.11",
"typeconfig": "2.0.8",
"typeconfig": "2.0.9",
"typeorm": "0.2.21",
"winston": "2.4.4"
},

View File

@ -21,6 +21,8 @@ import * as unless from 'express-unless';
import {Event} from '../common/event/Event';
import {QueryParams} from '../common/QueryParams';
import {ServerConfig} from '../common/config/private/PrivateConfig';
import {ConfigClassBuilder} from 'typeconfig/node';
import {ConfigClassOptions} from 'typeconfig/src/decorators/class/IConfigClass';
const _session = require('cookie-session');
@ -48,7 +50,8 @@ export class Server {
async init(): Promise<void> {
Logger.info(LOG_TAG, 'running diagnostics...');
await ConfigDiagnostics.runDiagnostics();
Logger.verbose(LOG_TAG, 'using config:');
Logger.verbose(LOG_TAG, 'using config from ' +
(<ConfigClassOptions>ConfigClassBuilder.attachPrivateInterface(Config).__options).configPath + ':');
Logger.verbose(LOG_TAG, JSON.stringify(Config, null, '\t'));
this.app = _express();