Skip to content

Commit

Permalink
graphql_schema logging too noisy #917
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed Jan 3, 2025
1 parent 5541d6c commit 19441a4
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 5 deletions.
Empty file modified front/php/templates/language/ca_ca.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/de_de.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/es_es.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/fr_fr.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/nb_no.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/pl_pl.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/ru_ru.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/uk_ua.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/zh_cn.json
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions server/graphql_server/graphql_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def resolve_devices(self, info, options=None):
device["devIpLong"] = format_ip_long(device.get("devLastIP", ""))


mylog('none', f'[graphql_schema] devices_data: {devices_data}')
mylog('verbose', f'[graphql_schema] devices_data: {devices_data}')



Expand All @@ -127,14 +127,14 @@ def resolve_devices(self, info, options=None):
# Define status-specific filtering
if options.status:
status = options.status
mylog('none', f'[graphql_schema] Applying status filter: {status}')
mylog('verbose', f'[graphql_schema] Applying status filter: {status}')

# Example filtering based on the "status"
if status == "my_devices":
# Include devices matching criteria in UI_MY_DEVICES
allowed_statuses = get_setting_value("UI_MY_DEVICES")

mylog('none', f'[graphql_schema] allowed_statuses: {allowed_statuses}')
mylog('verbose', f'[graphql_schema] allowed_statuses: {allowed_statuses}')

devices_data = [
device for device in devices_data
Expand Down Expand Up @@ -219,9 +219,9 @@ def resolve_settings(root, info):
return SettingResult(settings=[], count=0)


mylog('none', f'[graphql_schema] settings_data: {settings_data}')
mylog('verbose', f'[graphql_schema] settings_data: {settings_data}')

# # Convert to Setting objects
# Convert to Setting objects
settings = [Setting(**setting) for setting in settings_data]

return SettingResult(settings=settings, count=len(settings))
Expand Down

0 comments on commit 19441a4

Please sign in to comment.