@@ -46,8 +46,8 @@ class EvaluatorStack {
46
46
// Please note that calls to Push may invalidate returned Span object.
47
47
absl::Span<const cel::Handle <cel::Value>> GetSpan (size_t size) const {
48
48
if (!HasEnough (size)) {
49
- LOG (ERROR) << " Requested span size (" << size
50
- << " ) exceeds current stack size: " << current_size_;
49
+ ABSL_LOG (ERROR) << " Requested span size (" << size
50
+ << " ) exceeds current stack size: " << current_size_;
51
51
}
52
52
return absl::Span<const cel::Handle <cel::Value>>(
53
53
stack_.data () + current_size_ - size, size);
@@ -65,7 +65,7 @@ class EvaluatorStack {
65
65
// Checking that stack is not empty is caller's responsibility.
66
66
const cel::Handle <cel::Value>& Peek () const {
67
67
if (empty ()) {
68
- LOG (ERROR) << " Peeking on empty EvaluatorStack" ;
68
+ ABSL_LOG (ERROR) << " Peeking on empty EvaluatorStack" ;
69
69
}
70
70
return stack_[current_size_ - 1 ];
71
71
}
@@ -74,7 +74,7 @@ class EvaluatorStack {
74
74
// Checking that stack is not empty is caller's responsibility.
75
75
const AttributeTrail& PeekAttribute () const {
76
76
if (empty ()) {
77
- LOG (ERROR) << " Peeking on empty EvaluatorStack" ;
77
+ ABSL_LOG (ERROR) << " Peeking on empty EvaluatorStack" ;
78
78
}
79
79
return attribute_stack_[current_size_ - 1 ];
80
80
}
@@ -83,8 +83,8 @@ class EvaluatorStack {
83
83
// Checking that stack has enough elements is caller's responsibility.
84
84
void Pop (size_t size) {
85
85
if (!HasEnough (size)) {
86
- LOG (ERROR) << " Trying to pop more elements (" << size
87
- << " ) than the current stack size: " << current_size_;
86
+ ABSL_LOG (ERROR) << " Trying to pop more elements (" << size
87
+ << " ) than the current stack size: " << current_size_;
88
88
}
89
89
while (size > 0 ) {
90
90
stack_.pop_back ();
@@ -101,7 +101,7 @@ class EvaluatorStack {
101
101
102
102
void Push (cel::Handle <cel::Value> value, AttributeTrail attribute) {
103
103
if (current_size_ >= max_size ()) {
104
- LOG (ERROR) << " No room to push more elements on to EvaluatorStack" ;
104
+ ABSL_LOG (ERROR) << " No room to push more elements on to EvaluatorStack" ;
105
105
}
106
106
stack_.push_back (std::move (value));
107
107
attribute_stack_.push_back (std::move (attribute));
@@ -118,7 +118,7 @@ class EvaluatorStack {
118
118
// Checking that stack is not empty is caller's responsibility.
119
119
void PopAndPush (cel::Handle <cel::Value> value, AttributeTrail attribute) {
120
120
if (empty ()) {
121
- LOG (ERROR) << " Cannot PopAndPush on empty stack." ;
121
+ ABSL_LOG (ERROR) << " Cannot PopAndPush on empty stack." ;
122
122
}
123
123
stack_[current_size_ - 1 ] = std::move (value);
124
124
attribute_stack_[current_size_ - 1 ] = std::move (attribute);
0 commit comments