19679d43eSGunnar Mills /**
29679d43eSGunnar Mills  * Copyright © 2017 IBM Corporation
39679d43eSGunnar Mills  *
49679d43eSGunnar Mills  * Licensed under the Apache License, Version 2.0 (the "License");
59679d43eSGunnar Mills  * you may not use this file except in compliance with the License.
69679d43eSGunnar Mills  * You may obtain a copy of the License at
79679d43eSGunnar Mills  *
89679d43eSGunnar Mills  *     http://www.apache.org/licenses/LICENSE-2.0
99679d43eSGunnar Mills  *
109679d43eSGunnar Mills  * Unless required by applicable law or agreed to in writing, software
119679d43eSGunnar Mills  * distributed under the License is distributed on an "AS IS" BASIS,
129679d43eSGunnar Mills  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
139679d43eSGunnar Mills  * See the License for the specific language governing permissions and
149679d43eSGunnar Mills  * limitations under the License.
159679d43eSGunnar Mills  */
169679d43eSGunnar Mills #include "elog.hpp"
179679d43eSGunnar Mills 
189679d43eSGunnar Mills namespace phosphor
199679d43eSGunnar Mills {
209679d43eSGunnar Mills namespace dbus
219679d43eSGunnar Mills {
229679d43eSGunnar Mills namespace monitoring
239679d43eSGunnar Mills {
249679d43eSGunnar Mills 
operator ()(Context ctx)25a45e086dSRatan Gupta void ElogBase::operator()(Context ctx)
269679d43eSGunnar Mills {
27*ee4c6ebfSMarri Devender Rao     if (ctx == Context::START)
28*ee4c6ebfSMarri Devender Rao     {
29*ee4c6ebfSMarri Devender Rao         // No action should be taken as this call back is being called from
30*ee4c6ebfSMarri Devender Rao         // daemon Startup.
31*ee4c6ebfSMarri Devender Rao         return;
32*ee4c6ebfSMarri Devender Rao     }
339679d43eSGunnar Mills     log();
349679d43eSGunnar Mills }
359679d43eSGunnar Mills 
369679d43eSGunnar Mills } // namespace monitoring
379679d43eSGunnar Mills } // namespace dbus
389679d43eSGunnar Mills } // namespace phosphor
39