ucphhpc / migrid-sync

MiGrid workspace where master branch is kept strictly in sync with SF upstream svn repo. Any development or experiments should use a branch. You probably want to fork your own clone or work e.g. on the edge branch if you wish to contribute.
GNU General Public License v2.0
3 stars 4 forks source link

Entire email contents is printed in mig.log #1

Closed Bjarke42 closed 1 year ago

Bjarke42 commented 1 year ago

In order to use automation and parsing of logs, please remove lines that do not start with date time like this line:

2023-02-01 14:01:34,358 INFO Send email: to: user@mail.dk, header: Welcome to ERDA, msg: Hi and welcome to ERDA!

The entire log enty is as follows:

2023-02-01 14:01:34,358 INFO Send email: to: user@mail.dk, header: Welcome to ERDA, msg: Hi and welcome to ERDA!

Your account sign up succeeded and you can now log in to your account using
your login from
https://www.erda.dk
There you'll also find further information about making the most of
ERDA, including a user guide and answers to Frequently Asked
Questions, plus site status and support information.
You're welcome to contact us with questions or comments using the contact
details there and in the footer of your personal ERDA pages.

Please note that by signing up and using ERDA you also formally
accept the site Terms of Use, which you'll always find in the current form at
https://www.erda.dk/terms.html

All the best,
The ERDA Admins
, smtp_server: localhost

Alle the lines after the first with date and time is difficult to parse when using logging automation tools.

Instead just print the first part of the message:

2023-02-01 14:01:34,358 INFO Send email: to: user@mail.dk, header: Welcome to ERDA, msg: Hi and welcome to ERDA!

jonasbardino commented 1 year ago

Moved the gory email details to debug log with migrid svn rev 5670 which will enter git on next sync.