Skip to content
Snippets Groups Projects
Commit 8565b86a authored by srosse's avatar srosse
Browse files

OO-3045: log informations about the course or the test which make a problem

parent 697c14a3
No related branches found
No related tags found
No related merge requests found
...@@ -539,8 +539,9 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im ...@@ -539,8 +539,9 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
protected void initSettingsTools(Dropdown settings) { protected void initSettingsTools(Dropdown settings) {
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) { if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
boolean managed = RepositoryEntryManagedFlag.isManaged(getRepositoryEntry(), RepositoryEntryManagedFlag.editcontent); boolean managed = RepositoryEntryManagedFlag.isManaged(getRepositoryEntry(), RepositoryEntryManagedFlag.editcontent);
UserCourseEnvironment uce = getUserCourseEnvironment(); UserCourseEnvironment uce = null;//getUserCourseEnvironment();
if(uce == null) { if(uce == null) {
logError("User course environnment is null: " + getRepositoryEntry(), null);
return;// cannot edit settings without uce return;// cannot edit settings without uce
} }
......
...@@ -366,6 +366,7 @@ public class AssessmentTestComposerController extends MainLayoutBasicController ...@@ -366,6 +366,7 @@ public class AssessmentTestComposerController extends MainLayoutBasicController
try { try {
resolvedObject = qtiService.loadAndResolveAssessmentTest(unzippedDirRoot, false, true); resolvedObject = qtiService.loadAndResolveAssessmentTest(unzippedDirRoot, false, true);
if(resolvedObject == null) { if(resolvedObject == null) {
logError("QTI 2.1 AssessmentTest is null: " + testEntry, null);
return false; return false;
} }
return resolvedObject.getRootNodeLookup().extractIfSuccessful() != null; return resolvedObject.getRootNodeLookup().extractIfSuccessful() != null;
......
...@@ -649,6 +649,12 @@ public class RepositoryEntry implements CreateInfo, Persistable , RepositoryEntr ...@@ -649,6 +649,12 @@ public class RepositoryEntry implements CreateInfo, Persistable , RepositoryEntr
@Override @Override
public String toString() { public String toString() {
return super.toString()+" [resourcename="+resourcename+", version="+version+", description="+description+"]"; StringBuilder sb = new StringBuilder();
sb.append("repositoryEntry[id=").append(key == null ? "null" : key.toString()).append(";")
.append("displayname=").append(displayname == null ? "null" : displayname).append(";")
.append("externalId=").append(externalId == null ? "null" : externalId).append(";")
.append("externalRef=").append(externalRef == null ? "null" : externalRef).append("]")
.append(super.toString());
return sb.toString();
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment