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

improve plugin startup logging #360

Merged
merged 1 commit into from
Feb 21, 2019
Merged

improve plugin startup logging #360

merged 1 commit into from
Feb 21, 2019

Conversation

edaniszewski
Copy link
Contributor

with the simple example plugin:

INFO[0000] [config] loading configuration                ext=yaml loader=plugin name=config paths="[. ./config /etc/synse/plugin/config]"
INFO[0000] [config] found valid config                   file=config.yml loader=plugin path=. policy=optional
INFO[0000] Plugin Info:                                 
INFO[0000]   Tag:         vaporio/simple-plugin         
INFO[0000]   Name:        simple plugin                 
INFO[0000]   Maintainer:  vaporio                       
INFO[0000]   VCS:                                       
INFO[0000]   Description: A simple example plugin       
INFO[0000] Version Info:                                
INFO[0000]   Plugin Version: 1.0                        
INFO[0000]   SDK Version:    3.0.0                      
INFO[0000]   Git Commit:     f8e5401                    
INFO[0000]   Git Tag:        1.2.0-33-gf8e5401          
INFO[0000]   Build Date:     2019-02-21T21:15:54        
INFO[0000]   Go Version:     go1.11.4                   
INFO[0000]   OS/Arch:        darwin/amd64               
INFO[0000] Plugin Config:                               
INFO[0000]   Version: 3                                 
INFO[0000]   Debug:   true                              
INFO[0000]   ID:                                        
INFO[0000]     UsePluginTag: true                       
INFO[0000]     UseMachineID: true                       
INFO[0000]     UseEnv:       []                         
INFO[0000]     UseCustom:    []                         
INFO[0000]   Settings:                                  
INFO[0000]     Mode: parallel                           
INFO[0000]     Listen:                                  
INFO[0000]       Disable: false                         
INFO[0000]     Read:                                    
INFO[0000]       Disable:   false                       
INFO[0000]       QueueSize: 128                         
INFO[0000]       Interval:  5s                          
INFO[0000]       Delay:     0s                          
INFO[0000]     Write:                                   
INFO[0000]       Disable:   false                       
INFO[0000]       QueueSize: 128                         
INFO[0000]       BatchSize: 128                         
INFO[0000]       Interval:  5s                          
INFO[0000]       Delay:     0s                          
INFO[0000]     Transaction:                             
INFO[0000]       TTL: 8m0s                              
INFO[0000]     Limiter:                                 
INFO[0000]       Rate:  0                               
INFO[0000]       Burst: 0                               
INFO[0000]     Cache:                                   
INFO[0000]       Enabled: false                         
INFO[0000]       TTL:     3m0s                          
INFO[0000]   Network:                                   
INFO[0000]     Type:    unix                            
INFO[0000]     Address: simple-plugin.sock              
INFO[0000]     TLS:                                     
INFO[0000]       Key:                                   
INFO[0000]       Cert:                                  
INFO[0000]       CACerts:    []                         
INFO[0000]       SkipVerify: false                      
INFO[0000]   DynamicRegistration:                       
INFO[0000]     Config: []                               
INFO[0000]   Health:                                    
INFO[0000]     HealthFile: /etc/synse/plugin/healthy    
INFO[0000]     Checks:                                  
INFO[0000]       DisableDefaults: false                 
INFO[0000] [device manager] initializing                
INFO[0000] [config] loading configuration                ext=yaml loader=device name= paths="[./config/device /etc/synse/plugin/config/device]"
INFO[0000] [config] found valid config                   file=led.yaml loader=device path=./config/device policy=required
INFO[0000] [config] found valid config                   file=test.yaml loader=device path=./config/device policy=required
DEBU[0000] [config] scanning config into struct          type="*config.Devices"
INFO[0000] [device manager] added new device             id=164bad3f-39a4-51df-b063-252c50b9aff6 type=led
INFO[0000] [device manager] added new device             id=cc22c237-68aa-57e7-b1a7-dd17c67bc1c7 type=led
INFO[0000] [device manager] added new device             id=54f07972-fc84-500e-96d9-2d2588aabe8f type=temperature
INFO[0000] [device manager] added new device             id=ac20f921-a0be-57a5-90e9-33f12b4ecb62 type=temperature
INFO[0000] [device manager] added new device             id=ab1f8f82-3cc3-5a12-bb77-d2c7e5cdfdd4 type=temperature
INFO[0000] [device manager] created devices              devices=5
DEBU[0000] [server] setting up server                   
INFO[0000] [server] tls/ssl not configured, using insecure transport 
INFO[0000] [device manager] starting                    
INFO[0000] [scheduler] starting...                      
INFO[0000] [plugin] will terminate on: [SIGTERM, SIGINT] 
INFO[0000] [scheduler] starting read scheduling          delay=0s interval=5s mode=parallel
INFO[0000] [scheduler] starting write scheduling         delay=0s interval=5s mode=parallel
DEBU[0000] [scheduler] sleeping for write interval       delay=0s interval=5s mode=parallel
INFO[0000] [scheduler] listeners will not be scheduled (no listener handlers registered) 
DEBU[0000] [scheduler] sleeping for read interval        delay=0s interval=5s mode=parallel
INFO[0000] [server] serving...                           addr=simple-plugin.sock mode=unix

@edaniszewski edaniszewski merged commit 5d4df8d into v3/staging Feb 21, 2019
@edaniszewski edaniszewski deleted the v3/logging-1 branch February 21, 2019 21:23
edaniszewski added a commit that referenced this pull request Mar 27, 2020
edaniszewski added a commit that referenced this pull request Mar 30, 2020
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

Successfully merging this pull request may close these issues.

None yet

1 participant