mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 09:40:00 -06:00
fix: error logs are too verbose
There were some extra logs when an error triggers an alarm that don't need to be there.
This commit is contained in:
@@ -112,7 +112,9 @@ class AlarmService extends BaseService {
|
||||
* @param {object} fields - Additional information about the alarm.
|
||||
*/
|
||||
create (id, message, fields) {
|
||||
this.log.error(`upcoming alarm: ${id}: ${message}`);
|
||||
if ( this.config.log_upcoming_alarms ) {
|
||||
this.log.error(`upcoming alarm: ${id}: ${message}`);
|
||||
}
|
||||
let existing = false;
|
||||
/**
|
||||
* Method to create an alarm with the given ID, message, and fields.
|
||||
|
||||
@@ -92,9 +92,6 @@ class ErrorService extends BaseService {
|
||||
message = message ?? source?.message;
|
||||
logger = logger ?? this.backupLogger;
|
||||
logger.error(`Error @ ${location}: ${message}; ` + source?.stack);
|
||||
if ( trace ) {
|
||||
logger.error(source);
|
||||
}
|
||||
|
||||
if ( alarm ) {
|
||||
const alarm_id = `${location}:${message}`;
|
||||
|
||||
Reference in New Issue
Block a user