Commit df9be4e3 authored by gmantele's avatar gmantele
Browse files

[UWS] Fix bug when logging the success of the jobs backup for a specific user.

parent e68f8aae
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ package uws.service.log;
 * You should have received a copy of the GNU Lesser General Public License
 * along with UWSLibrary.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Copyright 2012-2015 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
 * Copyright 2012-2016 - UDS/Centre de Données astronomiques de Strasbourg (CDS),
 *                       Astronomisches Rechen Institut (ARI)
 */

@@ -43,7 +43,7 @@ import uws.service.file.UWSFileManager;
 * <p>Default implementation of {@link UWSLog} interface which lets logging any message about a UWS.</p>
 * 
 * @author Gr&eacute;gory Mantelet (CDS;ARI)
 * @version 4.1 (04/2015)
 * @version 4.2 (07/2016)
 */
public class DefaultUWSLog implements UWSLog {

@@ -577,6 +577,9 @@ public class DefaultUWSLog implements UWSLog {
		String report = null;
		if (event != null && event.equalsIgnoreCase("BACKUPED") && obj != null && obj.getClass().getName().equals("[I")){
			int[] backupReport = (int[])obj;
			if (backupReport.length == 2)
				report = "(" + backupReport[0] + "/" + backupReport[1] + " jobs backuped for this user)";
			else
				report = "(" + backupReport[0] + "/" + backupReport[1] + " jobs backuped ; " + backupReport[2] + "/" + backupReport[3] + " users backuped)";
		}else if (event != null && event.equalsIgnoreCase("RESTORED") && obj != null && obj.getClass().getName().equals("[I")){
			int[] restoreReport = (int[])obj;