GitHub user dosubot[bot] added a comment to the discussion: DB connection issue

<!-- Answer -->
To increase the verbosity of logs in Superset for debugging purposes, you can 
adjust the logging configuration in the `superset/config.py` file. Set the 
`LOG_LEVEL` to `logging.DEBUG` to capture more detailed logs:

```python
LOG_LEVEL = logging.DEBUG
```

Additionally, you can enable time-rotated log files by setting 
`ENABLE_TIME_ROTATE` to `True` and configuring related settings:

```python
ENABLE_TIME_ROTATE = True
TIME_ROTATE_LOG_LEVEL = logging.DEBUG
FILENAME = os.path.join(DATA_DIR, "superset.log")
ROLLOVER = "midnight"
INTERVAL = 1
BACKUP_COUNT = 30
```

These configurations will help you capture more detailed logs, which can be 
useful for diagnosing issues like the one you're experiencing with 
timezone-aware datetime conversions 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/config.py)</sup>.

Regarding the specific error you're encountering with timezone-aware datetime 
conversions, it seems to be related to the handling of datetime objects in the 
`result_set.py` file. The error indicates that timezone-aware datetime objects 
cannot be converted to `datetime64` unless `utc=True`. To resolve this, ensure 
that your datetime data is correctly processed with timezone information. You 
might need to adjust the conversion logic to handle timezone-aware datetimes 
properly 
<sup>[[2]](https://github.com/apache/superset/blob/master/superset/result_set.py)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/docs/docs/configuration/timezones.mdx)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/9133c8e3-ef4d-4aae-afef-8d0840dc5a01?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/9133c8e3-ef4d-4aae-afef-8d0840dc5a01?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/9133c8e3-ef4d-4aae-afef-8d0840dc5a01?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/9133c8e3-ef4d-4aae-afef-8d0840dc5a01?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/9133c8e3-ef4d-4aae-afef-8d0840dc5a01?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/9133c8e3-ef4d-4aae-afef-8d0840dc5a01?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/9133c8e3-ef4d-4aae-afef-8d0840dc5a01?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/superset/discussions/32998#discussioncomment-12722818

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to