Skip to content

Inconsistent logging timestamp #1777

@tosiara

Description

@tosiara

Did you read the guide?

Yes

What is the base version number of Motion being used?

4.6.x

What was the install method?

Built from source code

What is base architecture?

x86

What is the distro being used?

Raspbian

Disto version number

22.04

Camera type(s) being used?

Network camera with RTSP

Describe the issue/problem and steps to reproduce

Timestamp in the log seems to be fixed width which causes seconds truncation on default Ubuntu installation with Lithuanian locale. The format changes at runtime:

[0:motion] [DBG] [DBL] [Jun 21 15:48:33] dbse_global_init: Initializing database
[0:motion] [NTC] [ALL] [birž. 21 15:48:] translate_init: Language: English

Would be great to force same time format across all the log and avoid truncation

Motion log output at log_level 8

[0:motion] [DBG] [STR] [Jun 21 15:48:33] webu_mhd_features_tls: SSL/TLS: available
[0:motion] [NTC] [STR] [Jun 21 15:48:33] webu_start_ctrl: Started webcontrol on port 8080
[0:motion] [NTC] [ENC] [Jun 21 15:48:33] ffmpeg_global_init: ffmpeg libavcodec version 58.134.100 libavformat version 58.76.100
[0:motion] [DBG] [DBL] [Jun 21 15:48:33] dbse_global_init: Initializing database
[0:motion] [NTC] [ALL] [birž. 21 15:48:] translate_init: Language: English
[0:motion] [NTC] [ALL] [birž. 21 15:48:] motion_start_thread: Camera ID: 0 is from motion-file.conf
[0:motion] [NTC] [ALL] [birž. 21 15:48:] motion_start_thread: Camera ID: 0 Camera Name: motion Service: file:
[0:motion] [NTC] [ALL] [birž. 21 15:48:] main: Waiting for threads to finish, pid: 504047

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions