Attention is currently required from: fixeria.
dexter has posted comments on this change by dexter. ( https://gerrit.osmocom.org/c/pysim/+/41890?usp=email )
Change subject: pySimLogger: user __name__ of the module when creating a new logger
......................................................................
Patch Set 2:
(4 comments)
File contrib/csv-to-pgsql.py:
https://gerrit.osmocom.org/c/pysim/+/41890/comment/092ac33a_b5dbcf88?usp=em… :
PS1, Line 15: __name__
> See my comment in `pySim-shell.py`.
Done
https://gerrit.osmocom.org/c/pysim/+/41890/comment/e6685a48_90b09133?usp=em… :
PS1, Line 38: log = PySimLogger.get(__name__)
> This becomes an equivalent of the logger above, and thus can be removed?
I remember having problems here. This code location was not able to access the globel log object. Maybe I should pass it with the constructor then?
File pySim-shell.py:
https://gerrit.osmocom.org/c/pysim/+/41890/comment/f880deed_9db762ad?usp=em… :
PS1, Line 77: __name__
> Since this is the top level of the hierarchy, it's actually desirable to set the module name manuall […]
Done
File pySim/card_key_provider.py:
https://gerrit.osmocom.org/c/pysim/+/41890/comment/1512115e_105e32c1?usp=em… :
PS1, Line 41: PySimLogger.get
> You no longer need to call `PySimLogger.get` here nor in other modules of the `pySim` namespace. […]
I gave this a try, but as it seems it is not the same.
With the log object from PySimLogger.get I get:
WARNING: HELLO (in yellow)
With the log object from logging.getLogger I get
HELLO (without color)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41890?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I49a9beb98845f66247edd42ed548980c97a7151a
Gerrit-Change-Number: 41890
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 26 Jan 2026 16:19:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Jenkins Builder has posted comments on this change by Timur Davydov. ( https://gerrit.osmocom.org/c/libosmo-netif/+/41952?usp=email )
Change subject: stream: make SCTP usage conditional on HAVE_LIBSCTP
......................................................................
Patch Set 1:
(1 comment)
File src/stream_srv.c:
Robot Comment from checkpatch (run ID ):
https://gerrit.osmocom.org/c/libosmo-netif/+/41952/comment/ecd54e84_8ebfb27… :
PS1, Line 1058: if (true) {
braces {} are not necessary for single statement blocks
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/41952?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I07ef25f3fcc39f9bee023d9264a72c4381b82b65
Gerrit-Change-Number: 41952
Gerrit-PatchSet: 1
Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Mon, 26 Jan 2026 16:14:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcap/+/41951?usp=email )
Change subject: server: Clarify reason of rolling pcap due to max-file-size vty config
......................................................................
server: Clarify reason of rolling pcap due to max-file-size vty config
Change the logging to print the VTY config name, so user can relate the
exct string, otherwise it can be confusing.
Related: SYS#7842
Change-Id: I6d2a2217e556afeedad78a1e9217f6a448d674c0
---
M src/osmo_server_core.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/51/41951/1
diff --git a/src/osmo_server_core.c b/src/osmo_server_core.c
index 4dc4178..a13c64c 100644
--- a/src/osmo_server_core.c
+++ b/src/osmo_server_core.c
@@ -393,7 +393,7 @@
if (conn->wrf->wr_offset + data_len <= conn->server->max_size)
return false;
- LOGP(DSERVER, LOGL_NOTICE, "Rolling over file for %s (max-size)\n", conn->name);
+ LOGP(DSERVER, LOGL_NOTICE, "Rolling over file for %s (max-file-size)\n", conn->name);
osmo_pcap_conn_restart_trace(conn);
return true;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/41951?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I6d2a2217e556afeedad78a1e9217f6a448d674c0
Gerrit-Change-Number: 41951
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
dexter has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/41766?usp=email )
Change subject: pySim/runtime: use log.warning instead of log.warn
......................................................................
pySim/runtime: use log.warning instead of log.warn
The python logger method warn is deprecated since pyton 3.3, let's us
the warning method as suggested.
Change-Id: I3a4c0ca43768198ac6011ebe79050f91c04862e5
---
M pySim/runtime.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
fixeria: Looks good to me, approved
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
diff --git a/pySim/runtime.py b/pySim/runtime.py
index 19d3538..54f431b 100644
--- a/pySim/runtime.py
+++ b/pySim/runtime.py
@@ -116,7 +116,7 @@
for a in aids_unknown:
log.info(" unknown: %s (EF.DIR)" % a)
else:
- log.warn("EF.DIR seems to be empty!")
+ log.warning("EF.DIR seems to be empty!")
# Some card applications may not be registered in EF.DIR, we will actively
# probe for those applications
@@ -557,8 +557,8 @@
raise TypeError("Data length (%u) exceeds %s size (%u) by %u bytes" %
(data_len, writeable_name, writeable_size, data_len - writeable_size))
elif data_len < writeable_size:
- log.warn("Data length (%u) less than %s size (%u), leaving %u unwritten bytes at the end of the %s" %
- (data_len, writeable_name, writeable_size, writeable_size - data_len, writeable_name))
+ log.warning("Data length (%u) less than %s size (%u), leaving %u unwritten bytes at the end of the %s" %
+ (data_len, writeable_name, writeable_size, writeable_size - data_len, writeable_name))
def update_binary(self, data_hex: str, offset: int = 0):
"""Update transparent EF binary data.
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41766?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I3a4c0ca43768198ac6011ebe79050f91c04862e5
Gerrit-Change-Number: 41766
Gerrit-PatchSet: 3
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Attention is currently required from: laforge, neels.
dexter has posted comments on this change by laforge. ( https://gerrit.osmocom.org/c/pysim/+/38014?usp=email )
Change subject: pySim.esim.saip: Implement optimized file content encoding
......................................................................
Patch Set 6:
(2 comments)
File pySim/esim/saip/__init__.py:
https://gerrit.osmocom.org/c/pysim/+/38014/comment/8dc1dd68_93276169?usp=em… :
PS6, Line 61: assert match.a >= cur
maybe return also return a ValueError? (The caller does not have to check for the ValueError and raise an exception? We return ValueErrors in other modules too, but I don't really get the concept)
https://gerrit.osmocom.org/c/pysim/+/38014/comment/a672edec_36f63d2d?usp=em… :
PS6, Line 463: ret.append(('fillFileOffset', block.a - cur))
cur is set to 0 at the beginning but it does not get re-assigned. Maybe there is something missing here?
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/38014?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I61e4a5e04beba5c9092979fc546292d5ef3d7aad
Gerrit-Change-Number: 38014
Gerrit-PatchSet: 6
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Mon, 26 Jan 2026 15:20:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No