Skip to content

Commit

Permalink
Change gelf handler protocol
Browse files Browse the repository at this point in the history
Even though similarity and tag rec can't log to graylog anymore...
  • Loading branch information
ffont committed Jan 20, 2025
1 parent a94efa8 commit 301ba69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion similarity/similarity_indexing_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def clear_memory(self, request):
logger.addHandler(handler)
std_handler.setFormatter(formatter)
logger.addHandler(std_handler)
handler_gelf = pygelf.GelfHttpsHandler(sim_settings.LOGSERVER_HOST, sim_settings.LOGSERVER_PORT)
handler_gelf = pygelf.GelfUdpHandler(sim_settings.LOGSERVER_HOST, sim_settings.LOGSERVER_PORT)
logger.addHandler(handler_gelf)

# Start service
Expand Down
2 changes: 1 addition & 1 deletion similarity/similarity_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def save(self, request, filename=None):
std_handler.setFormatter(formatter)
logger.addHandler(std_handler)
if LOG_TO_GRAYLOG:
handler_gelf = pygelf.GelfHttpsHandler(LOGSERVER_HOST, LOGSERVER_PORT)
handler_gelf = pygelf.GelfUdpHandler(LOGSERVER_HOST, LOGSERVER_PORT)
logger.addHandler(handler_gelf)

# Start service
Expand Down
2 changes: 1 addition & 1 deletion tagrecommendation/tagrecommendation_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def add_to_index(self, sound_ids, sound_tagss):
std_handler.setFormatter(formatter)
logger.addHandler(std_handler)
if tr_settings.LOG_TO_GRAYLOG:
handler_gelf = pygelf.GelfHttpsHandler(tr_settings.LOGSERVER_HOST, tr_settings.LOGSERVER_PORT)
handler_gelf = pygelf.GelfUdpHandler(tr_settings.LOGSERVER_HOST, tr_settings.LOGSERVER_PORT)
logger.addHandler(handler_gelf)

# Start service
Expand Down

0 comments on commit 301ba69

Please sign in to comment.