Skip to content

Commit

Permalink
[zap] fix debug logger
Browse files Browse the repository at this point in the history
  • Loading branch information
akshettrj committed Dec 6, 2023
1 parent 0d1a1b4 commit 853f3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whatsapp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewWhatsAppClient() error {
if cfg.WhatsApp.WhatsmeowDebugMode {
developmentConfig := zap.NewDevelopmentConfig()
developmentConfig.OutputPaths = append(developmentConfig.OutputPaths, "whatsmeow_debug.log")
logger, err = zap.NewDevelopment()
logger, err = developmentConfig.Build()
if err != nil {
panic(fmt.Errorf("failed to initialize development loggers for WhatsMeow client: %s", err))
}
Expand Down

0 comments on commit 853f3e6

Please sign in to comment.