Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Libhdbpp Timescale
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
Libhdbpp Timescale
Commits
696abd18
Commit
696abd18
authored
Dec 6, 2019
by
Stuart Mark James
Browse files
Options
Downloads
Patches
Plain Diff
Minor fix to DbConnection::storeParameterEvent()
parent
f1d131c1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/DbConnection.cpp
+14
-9
14 additions, 9 deletions
src/DbConnection.cpp
with
14 additions
and
9 deletions
src/DbConnection.cpp
+
14
−
9
View file @
696abd18
...
@@ -261,15 +261,6 @@ namespace pqxx_conn
...
@@ -261,15 +261,6 @@ namespace pqxx_conn
const
string
&
description
)
const
string
&
description
)
{
{
assert
(
!
full_attr_name
.
empty
());
assert
(
!
full_attr_name
.
empty
());
assert
(
!
label
.
empty
());
assert
(
!
unit
.
empty
());
assert
(
!
standard_unit
.
empty
());
assert
(
!
display_unit
.
empty
());
assert
(
!
format
.
empty
());
assert
(
!
archive_rel_change
.
empty
());
assert
(
!
archive_abs_change
.
empty
());
assert
(
!
archive_period
.
empty
());
assert
(
!
description
.
empty
());
assert
(
_conn
!=
nullptr
);
assert
(
_conn
!=
nullptr
);
assert
(
_conf_id_cache
!=
nullptr
);
assert
(
_conf_id_cache
!=
nullptr
);
assert
(
_error_desc_id_cache
!=
nullptr
);
assert
(
_error_desc_id_cache
!=
nullptr
);
...
@@ -277,6 +268,20 @@ namespace pqxx_conn
...
@@ -277,6 +268,20 @@ namespace pqxx_conn
spdlog
::
trace
(
"Storing parameter event for attribute {}"
,
full_attr_name
);
spdlog
::
trace
(
"Storing parameter event for attribute {}"
,
full_attr_name
);
auto
check_parameter
=
[](
auto
&
name
,
auto
&
value
)
{
if
(
value
.
empty
())
spdlog
::
warn
(
"Parameter {} is empty. Please set in the device server"
,
name
);
};
check_parameter
(
"label"
,
label
);
check_parameter
(
"unit"
,
unit
);
check_parameter
(
"standard_unit"
,
standard_unit
);
check_parameter
(
"display_unit"
,
display_unit
);
check_parameter
(
"archive_rel_change"
,
archive_rel_change
);
check_parameter
(
"archive_abs_change"
,
archive_abs_change
);
check_parameter
(
"archive_period"
,
archive_period
);
check_parameter
(
"description"
,
description
);
spdlog
::
trace
(
"Parmater event data: event_time {}, label {}, unit {}, standard_unit {}, display_unit {}, "
spdlog
::
trace
(
"Parmater event data: event_time {}, label {}, unit {}, standard_unit {}, display_unit {}, "
"format {}, archive_rel_change {}, archive_abs_change {}, archive_period {}, description {}"
,
"format {}, archive_rel_change {}, archive_abs_change {}, archive_period {}, description {}"
,
event_time
,
event_time
,
...
...
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