Skip to content

Commit ad712ce

Browse files
authored
Handling spurious log for last start updates when the last start is not changed (faucetsdn#1117)
1 parent a7056d7 commit ad712ce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

udmis/src/main/java/com/google/bos/udmi/service/access/IotAccessBase.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ public String modifyConfig(Envelope envelope, Function<Entry<Long, String>, Stri
233233
debug("Retrieved config %s/%s #%d", registryId, deviceId, version);
234234
String updatedConfig = ifNotNullGet(safeMunge(munger, currentConfig),
235235
updated -> checkedUpdate(envelope, version, updated));
236-
debug("Applied config %s/%s #%d", registryId, deviceId, version);
236+
// Preventing a spurious "applied config" message when no changes occurred.
237+
if (updatedConfig != null) {
238+
debug("Applied config %s/%s #%d", registryId, deviceId, version);
239+
}
237240
return updatedConfig;
238241
} catch (AbortLoopException e) {
239242
throw e;

0 commit comments

Comments
 (0)