@@ -76,29 +76,23 @@ public ReadOnlyCollection<string> AvailableLogTypes
76
76
public ReadOnlyCollection < LogEntry > GetLog ( string logKind )
77
77
{
78
78
List < LogEntry > entries = new List < LogEntry > ( ) ;
79
- try
80
- {
81
- Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
82
- parameters . Add ( "type" , logKind ) ;
83
- Response commandResponse = this . driver . InternalExecute ( DriverCommand . GetLog , parameters ) ;
84
79
85
- object [ ] responseValue = commandResponse . Value as object [ ] ;
86
- if ( responseValue != null )
80
+ Dictionary < string , object > parameters = new Dictionary < string , object > ( ) ;
81
+ parameters . Add ( "type" , logKind ) ;
82
+ Response commandResponse = this . driver . InternalExecute ( DriverCommand . GetLog , parameters ) ;
83
+
84
+ object [ ] responseValue = commandResponse . Value as object [ ] ;
85
+ if ( responseValue != null )
86
+ {
87
+ foreach ( object rawEntry in responseValue )
87
88
{
88
- foreach ( object rawEntry in responseValue )
89
+ Dictionary < string , object > entryDictionary = rawEntry as Dictionary < string , object > ;
90
+ if ( entryDictionary != null )
89
91
{
90
- Dictionary < string , object > entryDictionary = rawEntry as Dictionary < string , object > ;
91
- if ( entryDictionary != null )
92
- {
93
- entries . Add ( LogEntry . FromDictionary ( entryDictionary ) ) ;
94
- }
92
+ entries . Add ( LogEntry . FromDictionary ( entryDictionary ) ) ;
95
93
}
96
94
}
97
95
}
98
- catch ( NotImplementedException )
99
- {
100
- // Swallow for backwards compatibility
101
- }
102
96
103
97
return entries . AsReadOnly ( ) ;
104
98
}
0 commit comments