mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-04-05 08:54:17 -04:00
Moved application startup logs to dedicated info.js module. Lowered log output from unifi.js. Created tag.ejs partial. Implemented dedicated application status page. Updated voucher.ejs to implement status link. Lowered log output from cache.js. General cleanup of server.js. Implemented 501 Not Implemented responses when features are not enabled or configured properly
This commit is contained in:
@@ -27,7 +27,7 @@ module.exports = {
|
||||
if(vouchers) {
|
||||
cache.vouchers = vouchers;
|
||||
cache.updated = new Date().getTime();
|
||||
log.info(`[Cache] Saved ${vouchers.length} voucher(s)`);
|
||||
log.debug(`[Cache] Saved ${vouchers.length} voucher(s)`);
|
||||
}
|
||||
|
||||
log.info('[Cache] Requesting UniFi Guests...');
|
||||
@@ -39,7 +39,7 @@ module.exports = {
|
||||
if(guests) {
|
||||
cache.guests = guests;
|
||||
cache.updated = new Date().getTime();
|
||||
log.info(`[Cache] Saved ${guests.length} guest(s)`);
|
||||
log.debug(`[Cache] Saved ${guests.length} guest(s)`);
|
||||
}
|
||||
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user