mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
pluggable discovery: Debugging messages under 'discovery.debug' preference
This commit is contained in:
parent
20e1770842
commit
54ca2235cc
@ -74,13 +74,17 @@ public class DiscoveryManager {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
System.out.println("found discovery: " + discoveryName + " -> " + pattern);
|
||||
System.out.println("with preferencess -> " + discoveryPrefs);
|
||||
if (PreferencesData.getBoolean("discovery.debug")) {
|
||||
System.out.println("found discovery: " + discoveryName + " -> " + pattern);
|
||||
System.out.println("with preferencess -> " + discoveryPrefs);
|
||||
}
|
||||
pattern = StringReplacer.replaceFromMapping(pattern, PreferencesData.getMap());
|
||||
String[] cmd = StringReplacer.formatAndSplit(pattern, discoveryPrefs);
|
||||
discoverers.add(new PluggableDiscovery(discoveryName, cmd));
|
||||
} catch (Exception e) {
|
||||
System.out.println(format(tr("Could not start discovery '{0}': {1}"), discoveryName, e.getMessage()));
|
||||
if (PreferencesData.getBoolean("discovery.debug")) {
|
||||
System.out.println(format(tr("Could not start discovery '{0}': {1}"), discoveryName, e.getMessage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user