Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
ec0509c0
Commit
ec0509c0
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
adding loggers
parent
72d160f4
Gcloud_fix
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assessment-api/assessment-actors/src/main/scala/org/sunbird/managers/AssessmentManager.scala
+3
-1
...c/main/scala/org/sunbird/managers/AssessmentManager.scala
with
3 additions
and
1 deletion
+3
-1
assessment-api/assessment-actors/src/main/scala/org/sunbird/managers/AssessmentManager.scala
+
3
−
1
View file @
ec0509c0
...
...
@@ -58,7 +58,9 @@ object AssessmentManager {
logger
.
info
(
"Node value - {}"
,
node
)
val
serverEvaluable
=
node
.
getMetadata
.
getOrDefault
(
AssessmentConstants
.
EVAL
,
AssessmentConstants
.
FLOWER_BRACKETS
)
logger
.
info
(
"node eval value as String || [{}] "
,
serverEvaluable
.
toString
)
val
data
=
mapper
.
readValue
(
serverEvaluable
.
toString
,
classOf
[
java.util.Map
[
String
,
String
]])
val
strServerEval
:
String
=
new
ObjectMapper
().
writeValueAsString
(
serverEvaluable
);
logger
.
info
(
"node eval value as String || [{}] "
,
strServerEval
)
val
data
=
mapper
.
readValue
(
strServerEval
,
classOf
[
java.util.Map
[
String
,
String
]])
if
(
data
.
get
(
AssessmentConstants
.
MODE
)
!=
null
&&
data
.
get
(
AssessmentConstants
.
MODE
)
==
AssessmentConstants
.
SERVER
&&
!
StringUtils
.
equals
(
request
.
getOrDefault
(
"isEditor"
,
""
).
asInstanceOf
[
String
],
"true"
))
{
val
hideEditorResponse
=
hideEditorStateAns
(
node
)
if
(
StringUtils
.
isNotEmpty
(
hideEditorResponse
))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets