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
Merge requests
!4
develop -> main
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
develop -> main
develop
into
main
Overview
5
Commits
36
Pipelines
0
Changes
1
Merged
develop -> main
Alexandre MALFREYT
requested to merge
develop
into
main
3 months ago
Overview
5
Commits
36
Pipelines
0
Changes
1
0
0
Merge request reports
Viewing commit
ccec3c51
Prev
Next
Show latest version
1 file
+
9
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ccec3c51
fix: improve error logging for get_device_property in init_device (logs and status)
· ccec3c51
Alexandre MALFREYT
authored
3 months ago
src/SingleShotAO.cpp
+
9
−
2
View file @ ccec3c51
Edit in single-file editor
Open in Web IDE
Show full file
@@ -277,8 +277,15 @@ void SingleShotAO::init_device()
ERROR_STREAM
<<
"SingleShotAO::init_device::Tango::DevFailed exception caught "
<<
"while trying to read device properties from TANGO database"
<<
std
::
endl
;
ERROR_STREAM
<<
df
<<
std
::
endl
;
m_currStatus
=
"Failed to get property. See log for details"
;
std
::
string
error_msg
=
df
.
errors
[
0
].
desc
;
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
;
return
;
}
Loading