Matter increase logs when storing sessions (#19073)

This commit is contained in:
s-hadinger 2023-07-08 15:05:03 +02:00 committed by GitHub
parent 7afc4865e1
commit 0502c15ce3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 10 deletions

View File

@ -644,7 +644,7 @@ class Matter_Device
var f = open(self.FILENAME, "w") var f = open(self.FILENAME, "w")
f.write(j) f.write(j)
f.close() f.close()
tasmota.log(format("MTR: =Saved parameters%s", self.plugins_persist ? " and configuration" : ""), 3) tasmota.log(format("MTR: =Saved parameters%s", self.plugins_persist ? " and configuration" : ""), 2)
return j return j
except .. as e, m except .. as e, m
tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2) tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)

View File

@ -325,7 +325,7 @@ class Matter_Session_Store
var f = open(self._FABRICS, "w") var f = open(self._FABRICS, "w")
f.write(fabs) f.write(fabs)
f.close() f.close()
tasmota.log(format("MTR: =Saved %i fabric(s) and %i session(s)", fabs_size, sessions_saved), 3) tasmota.log(format("MTR: =Saved %i fabric(s) and %i session(s)", fabs_size, sessions_saved), 2)
self.device.event_fabrics_saved() # signal event self.device.event_fabrics_saved() # signal event
except .. as e, m except .. as e, m
tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2) tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)

View File

@ -4181,7 +4181,7 @@ be_local_closure(Matter_Device_save_param, /* name */
0, /* has sup protos */ 0, /* has sup protos */
NULL, /* no sub protos */ NULL, /* no sub protos */
1, /* has constants */ 1, /* has constants */
( &(const bvalue[31]) { /* constants */ ( &(const bvalue[30]) { /* constants */
/* K0 */ be_nested_str_weak(json), /* K0 */ be_nested_str_weak(json),
/* K1 */ be_nested_str_weak(update_remotes_info), /* K1 */ be_nested_str_weak(update_remotes_info),
/* K2 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22disable_bridge_mode_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i), /* K2 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22disable_bridge_mode_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i),
@ -4209,10 +4209,9 @@ be_local_closure(Matter_Device_save_param, /* name */
/* K24 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), /* K24 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s),
/* K25 */ be_nested_str_weak(_X20and_X20configuration), /* K25 */ be_nested_str_weak(_X20and_X20configuration),
/* K26 */ be_nested_str_weak(), /* K26 */ be_nested_str_weak(),
/* K27 */ be_const_int(3), /* K27 */ be_const_int(2),
/* K28 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), /* K28 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A),
/* K29 */ be_nested_str_weak(_X7C), /* K29 */ be_nested_str_weak(_X7C),
/* K30 */ be_const_int(2),
}), }),
be_str_weak(save_param), be_str_weak(save_param),
&be_const_str_solidified, &be_const_str_solidified,
@ -4293,7 +4292,7 @@ be_local_closure(Matter_Device_save_param, /* name */
0x5C240800, // 0049 MOVE R9 R4 0x5C240800, // 0049 MOVE R9 R4
0x7C200200, // 004A CALL R8 1 0x7C200200, // 004A CALL R8 1
0x001C0E08, // 004B ADD R7 R7 R8 0x001C0E08, // 004B ADD R7 R7 R8
0x5820001E, // 004C LDCONST R8 K30 0x5820001B, // 004C LDCONST R8 K27
0x7C140600, // 004D CALL R5 3 0x7C140600, // 004D CALL R5 3
0x80040400, // 004E RET 1 R2 0x80040400, // 004E RET 1 R2
0x70020000, // 004F JMP #0051 0x70020000, // 004F JMP #0051

View File

@ -1164,7 +1164,7 @@ be_local_closure(Matter_Session_Store_save_fabrics, /* name */
0, /* has sup protos */ 0, /* has sup protos */
NULL, /* no sub protos */ NULL, /* no sub protos */
1, /* has constants */ 1, /* has constants */
( &(const bvalue[27]) { /* constants */ ( &(const bvalue[26]) { /* constants */
/* K0 */ be_nested_str_weak(json), /* K0 */ be_nested_str_weak(json),
/* K1 */ be_nested_str_weak(remove_expired), /* K1 */ be_nested_str_weak(remove_expired),
/* K2 */ be_const_int(0), /* K2 */ be_const_int(0),
@ -1186,12 +1186,11 @@ be_local_closure(Matter_Session_Store_save_fabrics, /* name */
/* K18 */ be_nested_str_weak(tasmota), /* K18 */ be_nested_str_weak(tasmota),
/* K19 */ be_nested_str_weak(log), /* K19 */ be_nested_str_weak(log),
/* K20 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20_X25i_X20fabric_X28s_X29_X20and_X20_X25i_X20session_X28s_X29), /* K20 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20_X25i_X20fabric_X28s_X29_X20and_X20_X25i_X20session_X28s_X29),
/* K21 */ be_const_int(3), /* K21 */ be_const_int(2),
/* K22 */ be_nested_str_weak(device), /* K22 */ be_nested_str_weak(device),
/* K23 */ be_nested_str_weak(event_fabrics_saved), /* K23 */ be_nested_str_weak(event_fabrics_saved),
/* K24 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), /* K24 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A),
/* K25 */ be_nested_str_weak(_X7C), /* K25 */ be_nested_str_weak(_X7C),
/* K26 */ be_const_int(2),
}), }),
be_str_weak(save_fabrics), be_str_weak(save_fabrics),
&be_const_str_solidified, &be_const_str_solidified,
@ -1277,7 +1276,7 @@ be_local_closure(Matter_Session_Store_save_fabrics, /* name */
0x5C200600, // 004E MOVE R8 R3 0x5C200600, // 004E MOVE R8 R3
0x7C1C0200, // 004F CALL R7 1 0x7C1C0200, // 004F CALL R7 1
0x00180C07, // 0050 ADD R6 R6 R7 0x00180C07, // 0050 ADD R6 R6 R7
0x581C001A, // 0051 LDCONST R7 K26 0x581C0015, // 0051 LDCONST R7 K21
0x7C100600, // 0052 CALL R4 3 0x7C100600, // 0052 CALL R4 3
0x70020000, // 0053 JMP #0055 0x70020000, // 0053 JMP #0055
0xB0080000, // 0054 RAISE 2 R0 R0 0xB0080000, // 0054 RAISE 2 R0 R0