Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SingleShotAO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
InputOutput
ADLINK
SingleShotAO
Commits
ccb0929d
Commit
ccb0929d
authored
2 months ago
by
Alexandre MALFREYT
Browse files
Options
Downloads
Patches
Plain Diff
fix: improve error logging for get_device_property in init_device (logs and status)
parent
93bf57bc
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/SingleShotAO.cpp
+9
-2
9 additions, 2 deletions
src/SingleShotAO.cpp
with
9 additions
and
2 deletions
src/SingleShotAO.cpp
+
9
−
2
View file @
ccb0929d
...
@@ -267,8 +267,15 @@ void SingleShotAO::init_device()
...
@@ -267,8 +267,15 @@ void SingleShotAO::init_device()
ERROR_STREAM
<<
"SingleShotAO::init_device::Tango::DevFailed exception caught "
ERROR_STREAM
<<
"SingleShotAO::init_device::Tango::DevFailed exception caught "
<<
"while trying to read device properties from TANGO database"
<<
"while trying to read device properties from TANGO database"
<<
std
::
endl
;
<<
std
::
endl
;
ERROR_STREAM
<<
df
<<
std
::
endl
;
std
::
string
error_msg
=
df
.
errors
[
0
].
desc
;
m_currStatus
=
"Failed to get property. See log for details"
;
std
::
istringstream
error_stream
(
error_msg
);
std
::
string
line
;
std
::
getline
(
error_stream
,
line
);
// Read the first line
ERROR_STREAM
<<
line
<<
std
::
endl
;
while
(
std
::
getline
(
error_stream
,
line
))
{
// Read the rest of the lines
ERROR_STREAM
<<
" - "
<<
line
<<
std
::
endl
;
}
m_currStatus
=
error_msg
;
m_state
=
Tango
::
FAULT
;
m_state
=
Tango
::
FAULT
;
return
;
return
;
}
}
...
...
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