SDA-4196 Safe uptime retrieval

This commit is contained in:
sbenmoussati 2023-06-02 10:43:50 +02:00 committed by Salah Benmoussati
parent 8731263d08
commit e23c89b311

View File

@ -41,7 +41,7 @@ export class AppStats {
} catch (error) { } catch (error) {
logger.error('stats: Error getting machine uptime', error); logger.error('stats: Error getting machine uptime', error);
} }
logger.info(`Uptime -> `, os.uptime()); logger.info(`Uptime -> `, uptime);
logger.info(`User Info (OS Returned) -> `, os.userInfo()); logger.info(`User Info (OS Returned) -> `, os.userInfo());
} }