Skip to content

Better logging saying what exactly is wrong with "Agent subscription configuration". #92

@ankitpaudel20

Description

@ankitpaudel20

Is your feature request related to a problem? Please describe.
No clear logging saying what exactly is wrong while running the program.

Describe the solution you'd like
Some good message on what is wrong. if not, internal program exception stack trace is also okay.

Describe alternatives you've considered
None

Additional context
This is the log from the container running the program:

app-1  | 2024-11-14 08:24:11,494 INFO Set uid to user 0 succeeded
app-1  | 2024-11-14 08:24:11,497 INFO RPC interface 'supervisor' initialized
app-1  | 2024-11-14 08:24:11,497 CRIT Server 'unix_http_server' running without any HTTP authentication checking
app-1  | 2024-11-14 08:24:11,497 INFO supervisord started with pid 1
app-1  | 2024-11-14 08:24:12,499 INFO spawned: 'bootstrap' with pid 9
app-1  | 
app-1  | 8 8888         8 8888888888   8 8888888888   8 8888     ,88'
app-1  | 8 8888         8 8888         8 8888         8 8888    ,88' 
app-1  | 8 8888         8 8888         8 8888         8 8888   ,88'  
app-1  | 8 8888         8 8888         8 8888         8 8888  ,88'   
app-1  | 8 8888         8 888888888888 8 888888888888 8 8888 ,88'    
app-1  | 8 8888         8 8888         8 8888         8 8888 88'     
app-1  | 8 8888         8 8888         8 8888         8 888888<      
app-1  | 8 8888         8 8888         8 8888         8 8888 `Y8.    
app-1  | 8 8888         8 8888         8 8888         8 8888   `Y8.  
app-1  | 8 888888888888 8 888888888888 8 888888888888 8 8888     `Y8.                        
app-1  | 
app-1  | 2024-11-14 08:24:12,597 INFO success: bootstrap entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
app-1  | 
app-1  | |#|     Leek Celery Monitoring Tool                               |#|
app-1  | |#|     Versions: 0.7.0                                  |#|
app-1  | |#|     Release date: 2024/01/02 12:00:32                         |#|
app-1  | |#|     Codename: Fennec                                          |#|
app-1  | |#|     Repository: https://github.com/kodless/leek               |#|
app-1  | |#|     Homepage: https://tryleek.com                             |#|
app-1  | |#|     Documentation: https://tryleek.com/docs/introduction/leek |#|
app-1  | 
app-1  | Author: Hamza Adami <me@adamihamza.com>
app-1  | Follow me on Github: https://github.com/kodless 
app-1  | Buy me a coffee: https://buymeacoffee.com/fennec
app-1  | 
app-1  | 
app-1  | SERVICE     STATUS      URL
app-1  | =======     ------      ---
app-1  | - API       ENABLED    http://0.0.0.0:5000
app-1  | - WEB       ENABLED    http://0.0.0.0:8000
app-1  | - AGENT     ENABLED    -
app-1  | 
app-1  | ERROR:utils:Agent subscription configuration is invalid
app-1  | 2024-11-14 08:24:12,598 WARN received SIGTERM indicating exit request
app-1  | 2024-11-14 08:24:12,598 INFO waiting for bootstrap to die
app-1  | 2024-11-14 08:24:12,610 INFO exited: bootstrap (exit status 1; not expected)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions