Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
9986a433
Commit
9986a433
authored
4 years ago
by
uhensler
Browse files
Options
Downloads
Patches
Plain Diff
OO-4207: Log statements to catch the source of the red screen
parent
204d29d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/run/RunMainController.java
+16
-4
16 additions, 4 deletions
src/main/java/org/olat/course/run/RunMainController.java
with
16 additions
and
4 deletions
src/main/java/org/olat/course/run/RunMainController.java
+
16
−
4
View file @
9986a433
...
@@ -30,6 +30,7 @@ import java.util.Collections;
...
@@ -30,6 +30,7 @@ import java.util.Collections;
import
java.util.List
;
import
java.util.List
;
import
java.util.Set
;
import
java.util.Set
;
import
org.apache.logging.log4j.Logger
;
import
org.olat.core.commons.fullWebApp.LayoutMain3ColsController
;
import
org.olat.core.commons.fullWebApp.LayoutMain3ColsController
;
import
org.olat.core.gui.UserRequest
;
import
org.olat.core.gui.UserRequest
;
import
org.olat.core.gui.components.Component
;
import
org.olat.core.gui.components.Component
;
...
@@ -118,6 +119,8 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -118,6 +119,8 @@ import org.springframework.beans.factory.annotation.Autowired;
*/
*/
public
class
RunMainController
extends
MainLayoutBasicController
implements
GenericEventListener
,
Activateable2
{
public
class
RunMainController
extends
MainLayoutBasicController
implements
GenericEventListener
,
Activateable2
{
private
static
final
Logger
log
=
Tracing
.
createLoggerFor
(
RunMainController
.
class
);
public
static
final
String
REBUILD
=
"rebuild"
;
public
static
final
String
REBUILD
=
"rebuild"
;
public
static
final
String
ORES_TYPE_COURSE_RUN
=
OresHelper
.
calculateTypeName
(
RunMainController
.
class
,
CourseModule
.
ORES_TYPE_COURSE
);
public
static
final
String
ORES_TYPE_COURSE_RUN
=
OresHelper
.
calculateTypeName
(
RunMainController
.
class
,
CourseModule
.
ORES_TYPE_COURSE
);
private
final
OLATResourceable
courseRunOres
;
//course run ores for course run channel
private
final
OLATResourceable
courseRunOres
;
//course run ores for course run channel
...
@@ -825,11 +828,20 @@ public class RunMainController extends MainLayoutBasicController implements Gene
...
@@ -825,11 +828,20 @@ public class RunMainController extends MainLayoutBasicController implements Gene
if
(
currentNodeController
!=
null
&&
!
currentNodeController
.
isDisposed
()
&&
!
navHandler
.
isListening
(
currentNodeController
))
{
if
(
currentNodeController
!=
null
&&
!
currentNodeController
.
isDisposed
()
&&
!
navHandler
.
isListening
(
currentNodeController
))
{
currentNodeController
.
dispose
();
currentNodeController
.
dispose
();
}
}
currentNodeController
=
nclr
.
getRunController
();
updateLastUsage
(
nclr
.
getCalledCourseNode
());
updateLastUsage
(
nclr
.
getCalledCourseNode
());
Component
nodeComp
=
currentNodeController
.
getInitialComponent
();
try
{
contentP
.
setContent
(
nodeComp
);
currentNodeController
=
nclr
.
getRunController
();
addToHistory
(
ureq
,
currentNodeController
);
Component
nodeComp
=
currentNodeController
.
getInitialComponent
();
contentP
.
setContent
(
nodeComp
);
addToHistory
(
ureq
,
currentNodeController
);
}
catch
(
Exception
e
)
{
log
.
error
(
"Error on course node clicked! repositoryEntry={}, node={}, selectedNode={}, subTreeListener={}"
,
course
.
getCourseEnvironment
().
getCourseGroupManager
().
getCourseEntry
().
getKey
()
,
nclr
.
getCalledCourseNode
().
getIdent
()
,
nclr
.
getSelectedNodeId
()
,
nclr
.
isHandledBySubTreeModelListener
());
log
.
error
(
""
,
e
);
}
// set glossary wrapper dirty after menu click to make it reload the glossary
// set glossary wrapper dirty after menu click to make it reload the glossary
// stuff properly when in AJAX mode
// stuff properly when in AJAX mode
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment