View | Details | Raw Unified | Return to bug 40270
Collapse All | Expand All

(-)a/C4/SIP/SIPServer.pm (-2 / +2 lines)
Lines 323-330 sub raw_transport { Link Here
323
323
324
    siplog(
324
    siplog(
325
        "LOG_DEBUG", "raw_transport: uname/inst: '%s/%s'",
325
        "LOG_DEBUG", "raw_transport: uname/inst: '%s/%s'",
326
        $self->{account}->{id},
326
        $self->{account}->{id}          // 'undef',
327
        $self->{account}->{institution}
327
        $self->{account}->{institution} // 'undef'
328
    );
328
    );
329
    if ( !$self->{account}->{id} ) {
329
    if ( !$self->{account}->{id} ) {
330
        siplog( "LOG_ERR", "Login failed shutting down" );
330
        siplog( "LOG_ERR", "Login failed shutting down" );
(-)a/C4/SIP/Sip.pm (-2 / +9 lines)
Lines 311-317 sub siplog { Link Here
311
        : $level eq 'LOG_WARNING' ? 'warn'
311
        : $level eq 'LOG_WARNING' ? 'warn'
312
        :                           'error';
312
        :                           'error';
313
313
314
    my $message = @args ? sprintf( $mask, @args ) : $mask;
314
    my $message;
315
    if (@args) {
316
317
        # Replace undefined values with 'undef' to prevent sprintf warnings
318
        my @safe_args = map { defined($_) ? $_ : 'undef' } @args;
319
        $message = sprintf( $mask, @safe_args );
320
    } else {
321
        $message = $mask;
322
    }
315
323
316
    $message = remove_password_from_message($message);
324
    $message = remove_password_from_message($message);
317
325
318
- 

Return to bug 40270