Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is there no new log information in the /apollo/data/log folder? #15618

Open
AOOOOOA opened this issue Dec 17, 2024 · 4 comments
Open

Why is there no new log information in the /apollo/data/log folder? #15618

AOOOOOA opened this issue Dec 17, 2024 · 4 comments

Comments

@AOOOOOA
Copy link

AOOOOOA commented Dec 17, 2024

We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.

System information

  • OS Platform and Distribution:: Linux Ubuntu 18.04
  • Apollo installed from: source
  • *Apollo version: 8.0
  • Output of apollo.sh config if on master branch: yes

Steps to reproduce the issue:

  • Please use bullet points and include as much details as possible:

Hi, I'm using Apollo 8.0 with Carla 0.9.14. I noticed that the logs in the /data/log folder are sometimes not generated. Could you explain under what conditions a module generates a log file? Additionally, how can I debug this issue?

Supporting materials (screenshots, command lines, code/script snippets):

@AOOOOOA AOOOOOA changed the title Why the log data under folder /apollo/data/log folder has no new log information Why is there no new log information in the /apollo/data/log folder? Dec 17, 2024
@hearto1314
Copy link
Contributor

the log dir is determined by GLOG_log_dir env variable.
log file name is determined by module name in BUILD file.
when AINFO, AWARN, AERROR ... macro called will generate a log file if not exist.

@AOOOOOA
Copy link
Author

AOOOOOA commented Dec 19, 2024

the log dir is determined by GLOG_log_dir env variable. log file name is determined by module name in BUILD file. when AINFO, AWARN, AERROR ... macro called will generate a log file if not exist.

I have a log directory with existing old log files, but the issue is that when I launch Apollo again, it doesn't generate a new log file.

@hearto1314
Copy link
Contributor

the real log file format: {module name}.log.INFO.{datatime}.{pid} , the {module name}.INFO is a symlink to the real file.
if you start a new process, pid will changed, so a new log file will be created, it has always been so.

@AOOOOOA
Copy link
Author

AOOOOOA commented Dec 19, 2024

the real log file format: {module name}.log.INFO.{datatime}.{pid} , the {module name}.INFO is a symlink to the real file. if you start a new process, pid will changed, so a new log file will be created, it has always been so.

Sure, I got your point. I checked the real log file. The problem is that Apollo doesn't generate a new real log file. So I just wonder why and how can I fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants