~thomas-voss/indicator-network/fix-1382595

« back to all changes in this revision

Viewing changes to src/dbus-cpp/services/ofono.h

  • Committer: CI bot
  • Author(s): Jussi Pakkanen
  • Date: 2014-10-10 20:33:03 UTC
  • mfrom: (431.1.4 indicator-network)
  • Revision ID: ps-jenkins@lists.canonical.com-20141010203303-tak8oxj9gjro5qgj
Made trace logging a compile time option. Fixes: 1376302
Approved by: Antti Kaijanmäki, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
            } else if (property == Property::Technology::name()) {
231
231
                technology.set(str2technology(value.as<Property::Technology::ValueType>()));
232
232
            } else {
233
 
                //throw std::runtime_error(std::string(__PRETTY_FUNCTION__) + ": unexpected property change: " + property);
 
233
#ifdef INDICATOR_NETWORK_TRACE_MESSAGES
234
234
                std::cout << std::string(__PRETTY_FUNCTION__) + ": unhandled property change: " + property << std::endl;
 
235
#endif
235
236
            }
236
237
        }
237
238
 
774
775
            } else if (property == Property::SubscriberIdentity::name()) {
775
776
                subscriberIdentity.set(value.as<Property::SubscriberIdentity::ValueType>());
776
777
            } else {
777
 
                //std::cout << std::string(__PRETTY_FUNCTION__) + ": unhandled property change: " + property << std::endl;
 
778
#ifdef INDICATOR_NETWORK_TRACE_MESSAGES
 
779
                std::cout << std::string(__PRETTY_FUNCTION__) + ": unhandled property change: " + property << std::endl;
 
780
#endif
778
781
            }
779
782
        }
780
783
 
1000
1003
                        newInterfaces.push_back(iter->second);
1001
1004
                    } else {
1002
1005
                        // custom interface, we don't care
 
1006
#ifdef INDICATOR_NETWORK_TRACE_MESSAGES
1003
1007
                        std::cout << "Unknown Interface: " << interface << std::endl;
 
1008
#endif
1004
1009
                    }
1005
1010
                }
1006
1011
 
1153
1158
            } else if (property == Property::Type::name()) {
1154
1159
                type.set(str2type(value.as<Property::Type::ValueType>()));
1155
1160
            } else {
1156
 
                //std::cout << std::string(__PRETTY_FUNCTION__) + ": unhandled property change: " + property << std::endl;
 
1161
#ifdef INDICATOR_NETWORK_TRACE_MESSAGES
 
1162
                std::cout << std::string(__PRETTY_FUNCTION__) + ": unhandled property change: " + property << std::endl;
 
1163
#endif
1157
1164
            }
1158
1165
        }
1159
1166