enonic / xp

Enonic XP
https://enonic.com
GNU General Public License v3.0
201 stars 34 forks source link

Hard to know when system dump operations have finished #8107

Closed gbbirkisson closed 4 years ago

gbbirkisson commented 4 years ago

When creating/loading dumps it is hard to realize when that action is finished. Can we add log entries to both show that the operation has started and when it is done?

Currently the log entries when creating dumps:

2020-05-22 09:57:53,714 INFO  c.e.xp.repo.impl.dump.RepoDumper - Dumping repository [com.enonic.cms.default], branch [master]  
2020-05-22 09:57:54,263 INFO  c.e.xp.repo.impl.dump.RepoDumper - Dumping repository [com.enonic.cms.default], branch [draft]  
2020-05-22 09:58:20,995 INFO  c.e.xp.repo.impl.dump.RepoDumper - Dumping repository [system-repo], branch [master]  
2020-05-22 09:58:21,628 INFO  c.e.xp.repo.impl.dump.RepoDumper - Dumping repository [system.auditlog], branch [master]

Currently the log entries when loading dumps:

2020-05-22 09:59:56,780 INFO  c.e.x.repo.impl.dump.DumpServiceImpl - Uninstall global applications
2020-05-22 09:59:56,906 INFO  c.e.x.repo.impl.dump.DumpServiceImpl - Deleting repository [com.enonic.cms.default]
2020-05-22 09:59:56,950 INFO  c.e.x.repo.impl.dump.DumpServiceImpl - Deleting repository [system.auditlog]
2020-05-22 09:59:57,034 INFO  c.e.x.repo.impl.dump.DumpServiceImpl - Loading repository [system-repo]
2020-05-22 09:59:57,645 INFO  c.e.x.repo.impl.dump.DumpServiceImpl - Loading repository [com.enonic.cms.default]
2020-05-22 10:00:35,076 INFO  c.e.x.repo.impl.dump.DumpServiceImpl - Loading repository [system.auditlog]
2020-05-22 10:01:12,089 INFO  c.e.x.repo.impl.dump.DumpServiceImpl - Install global applications
rymsha commented 4 years ago

8219 added some logging. At the end of dump Dump completed INFO message is written into logs.