Implemented LOG_LEVEL environment variable. Implemented log_level HA variable. Implemented log level based on user preference. Changed UniFi stack trace output from error to debug. Removed duplicate cache error log. Implemented internal build number. Updated README.md. Added account warning to README.md. Output build version on application start

This commit is contained in:
Glenn de Haan
2024-04-17 17:19:00 +02:00
parent 5867bc423b
commit 2ce15fe7dc
8 changed files with 55 additions and 15 deletions

View File

@@ -20,9 +20,8 @@ module.exports = {
return new Promise(async (resolve) => {
log.info('[Cache] Requesting UniFi Vouchers...');
const vouchers = await unifi.list().catch((e) => {
const vouchers = await unifi.list().catch(() => {
log.error('[Cache] Error requesting vouchers!');
log.error(e);
});
if(vouchers) {