diff --git a/src/notifications.js b/src/notifications.js index 8555f468e..28aca5009 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -189,15 +189,15 @@ function oomEvent(eventId, app, addon, containerId, event, callback) { let title, message, program; if (app) { - program = app.fqdn; + program = `App ${app.fqdn}`; title = `The application ${app.fqdn} (${app.manifest.title}) ran out of memory.`; message = 'The application has been restarted automatically. If you see this notification often, consider increasing the [memory limit](https://cloudron.io/documentation/apps/#increasing-the-memory-limit-of-an-app)'; } else if (addon) { - program = addon.name; + program = `${addon.name} service`; title = `The ${addon.name} service ran out of memory`; message = 'The service has been restarted automatically. If you see this notification often, consider increasing the [memory limit](https://cloudron.io/documentation/troubleshooting/#services)'; } else { // this never happens currently - program = containerId; + program = `Container ${containerId}`; title = `The container ${containerId} ran out of memory`; message = 'The container has been restarted automatically. Consider increasing the [memory limit](https://docs.docker.com/v17.09/edge/engine/reference/commandline/update/#update-a-containers-kernel-memory-constraints)'; }